Forum Moderators: coopster

Message Too Old, No Replies

Emails to Hotmail not working

Help!

         

hpanag

7:40 pm on Mar 18, 2006 (gmt 0)



Hey guys,

I was hoping someone can point me to right direction. I'm trying to send email to hotmail accounts using mail() in PHP. It used to work few months back but it stopped recently. I have Reverse DNS setup as well.

Here is my code:

$from_name = "Name";
$from_email = "Name@test.com";
$subject = "Subject goes here";
$to_email = "harjot@hotmail.com";
$message = "test message";

$from1 = "From: ".$from_name." <".$from_email.">";
$from2 = "-f".$from_email;

mail($to_email, $subject, $message, $from1, $from2);

This code works for Gmail and other email services.

Thanks in advance.

pageoneresults

7:47 pm on Mar 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello hpanag, Welcome to WebmasterWorld!

Do you have an SPF Record?

[openspf.org...]

If you don't, there is a good chance your Hotmail recipients are not going to get your email. Same goes for AOL.