Jump to content

PHP MAIL() not working in Hotmail!!!


rameshfaj

Recommended Posts

I have tried the folowing which works in other mail servers but it doesnot work in Hotmail.Is there something missing.

Plz help me!The code is:

 

 

$to = "someone <some@email>";

$subject = "You've got mail!";

$message = "Hello someone.";

$headers = "From: [email protected]\n"; // I suggest you try using only \n

$headers .= "MIME-Version: 1.0\n";

$headers .= "Content-type: text/html; charset=iso-8859-1\n";

$headers .= "Reply-To: me <[email protected]>\n";

$headers .= "X-Priority: 1\n";

$headers .= "X-MSmail-Priority: High\n";

$headers .= "X-mailer: My maile

mail ($to, $subject, $message, $headers);

 

It just sends the email to JUNK!!!!!1.

 

Link to comment
https://forums.phpfreaks.com/topic/61991-php-mail-not-working-in-hotmail/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.