Hi, i have tried everything i can find on net to make my script not getting into spam but its not working, i tried on google and hotmail too. what should i do, maybe i m missing something. here is my code
PHP Code:
$to = "abc@gmail.com";
$fromname = "";
$random_hash = md5(date('r', time()));
//define the headers we want passed. Note that they are separated with \r\n
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
// $headers .= "boundary=\"PHP-alt-".$random_hash."\"\r\n";
$headers .= "X-Priority: 3\r\n";
$header .= "Reply-To: No Reply <no-reply@abc.org>\r\n";
$headers .= "Return-Path:<no-reply@abc.org>\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
$headers .= "X-Mailer: php\r\n";
$headers .= 'From: ' . $fromname . '<' . $mailfrom . '>' . "\r\n";
$subject = "United!";
//$subject = html_entity_decode($subject, ENT_QUOTES);
$message = html_entity_decode($body, ENT_QUOTES);
if(!mail($to, $subject, $message, $headers, "-f $mailfrom"))
{
echo "Mail is not sent for user id = ".$user_id;
}else{
echo "Mail is sent for user id = ".$user_id;
}



Reply With Quote



Bookmarks