问题描述
我正在通过phpmailer在我的网站上发送html电子邮件.但是,由于某些原因,一些实时/热邮件用户没有收到我的电子邮件.
I'm sending html emails via phpmailer on my website.But, for some reason a few live/hotmail users are not receiving my emails.
关于我的服务器日志,所有电子邮件都只是成功发送到正确的电子邮件地址.当我使用自己的(旧)hotmail地址进行测试时,我收到的电子邮件很好,但是有些用户抱怨他们没有.
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.
使用新的Outlook地址进行的测试也未收到该网站的任何电子邮件.
A test with a new outlook address is also not receiving any email from the website.
该脚本正在发送所有具有SMTP身份验证的电子邮件.我该在哪里进一步寻找?
The script is sending all the emails with SMTP auth.Where do I have to look further?
我的测试脚本:
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';}
推荐答案
最后,Microsoft收到了网站电子邮件.我没有配置DKIM,SPF记录和反向DNS.
Finally Microsoft is receiving the website e-mails.I didn't had DKIM, SPF records and reverse DNS configured.
除此之外,我还与Microsoft联系了我的问题.由于某些原因,他们不信任新的IP地址.现在,他们将IP添加到了保存发件人的列表中,并且Microsoft用户正在正确接收我的电子邮件.
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.
谢谢大家
这篇关于一些实时/hotmail用户未收到html邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!