Some live/hotmail user's are not receiving htm

2019-09-16 19:31发布

问题:

I'm sending html emails via phpmailer on my website. But, for some reason a few live/hotmail users are not receiving my emails.

Regarding my server logs, all the e-mails just send successful to the right email addresses. When I test with my own (old)hotmail address i'm receiving the emails just fine, but some users complaining they don't.

A test with a new outlook address is also not receiving any email from the website.

The script is sending all the emails with SMTP auth. Where do I have to look further?

My test script:

include("phpmailer/PHPMailerAutoload.php");

$mail = new PHPMailer();
$mail->IsHTML(false);
$mail->IsSMTP(); 
$mail->SMTPAuth   = true;                  // enable SMTP authentication

$mail->Host       = "mail.xxx.nl"; // sets the SMTP server
$mail->Username   = "info@xxx.nl"; // SMTP account username
$mail->Password   = "xxxxx";        // SMTP account password

$mail->From     = "info@xxx.nl";

$mail->AddAddress('xxx@outlook.com');

$mail->AddReplyTo("info@xxx.nl");
$mail->FromName = "De website www.xxx.nl";
$mail->Subject  = 'test';  
$mail->Body     = 'hallo';
$mail->AltBody     = strip_tags('test hallo');


if(!$mail->Send()) 
{ $succes = false; echo "Mailer Error: " . $mail->ErrorInfo;} else { echo 'success';}

回答1:

Finally Microsoft is receiving the website e-mails. I didn't had DKIM, SPF records and reverse DNS configured.

Beside that I contacted Microsoft about my problem. For some reason they don't trust new IP addresses. Now they added the IP to the list save senders and Microsoft users are receiving my e-mails correctly.

Thank you all