$subject = "Email Subject";
$header = "From: Some Person<email@somewhere.com>\r\n" .
'Reply-To: Some Person <email@somewhere.com>' . "\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
$message = "Email Message";
$sendmail = mail("user@hotmail.com",$subject,$message,$header);
This mail function sends emails to the hotmail user, but straight to hotmail's junk mail function. I have read that only html files will work, so I changed content-type from 'text/html' to 'html'. this seems wrong as it has attached a file to the email, which is most likely the email message. Also, I have read that "\r\n" may be a problem, so i changed it to "\n", still no results. All of these changes have not worked. So how do I avoid the dreaded junk mail function of email servers? yahoo and gmail works fine and my domain name is not blacklisted.

Start a new topic
Add Reply





MultiQuote

| 


