Some live/hotmail user's are not receiving html mail

◇◆丶佛笑我妖孽 提交于 2020-01-06 17:14:53

问题


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



来源:https://stackoverflow.com/questions/26118451/some-live-hotmail-users-are-not-receiving-html-mail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!