Forum Moderators: coopster
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.
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.