【发布时间】:2015-04-13 00:45:03
【问题描述】:
我目前在使用某些电子邮件域时遇到了一些问题。实际上,当我向这些域发送消息时,我会收到这条消息:
The original message was received at Thu, 12 Feb 2015 10:34:27 +0100 from smtp3.infomaniak.ch [84.16.68.91]
----- The following addresses had permanent fatal errors ----- <person_i_want_to_contact@domaine_name.com>
(reason: 550-ATLAS(2503): Your email was detected as spam. (RCPTs:)
----- Transcript of session follows ----- ... while talking to mx0.123-reg.co.uk.:
>>> DATA
<<< 550-ATLAS(2503): Your email was detected as spam. (RCPTs:
<<< 550 person_i_want_to_contact@domaine_name.com)
554 5.0.0 Service unavailable
几天来我一直在努力寻找解决方案,但我开始放弃了……我的 PHPMailer 代码如下所示:
function sendmail4d ( ) {
$mail = new PHPMailer;
$mail->isSMTP();
$mail->setLanguage('../fr','/language/');
$mail->Host = 'mail.infomaniak.ch';
$mail->Hostname = 'interpretercalendars.com';
$mail->SMTPAuth = true;
$mail->Username = 'username_example@interpretercalendars.com';
$mail->Password = 'password_example';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->Port = 587;
$mail->Sender = 'no-reply@interpretercalendars.com';
$mail->From = 'no-reply@interpretercalendars.com';
$mail->FromName = 'Interpreter Calendars';
$mail->addReplyTo('no-reply@interpretercalendars.com','Interpreter Calendars');
$mail->addAddress('person_i_want_to_contact@domaine_name.com');
$mail->isHTML(true);
$mail->Subject = 'Interpreter Calendars - Validate your account';
$mail->Body = 'Hi,<br /><br /><br />Welcome to Interpreter Calendars. To activate your account and start using Interpreter Calendars, please click on the link bellow :<br /><br /><a href="http://interpretercalendars.com">http://interpretercalendars.com</a><br /><br />If your click on the above link doesn\'t work, please copy and paste the entire link into your web browser.<br /><br />We are happy you chose Interpreter Calendars. With best regards<br /><br />The Interpreter Calendars team<br /><br /><br /><br />This is a computer-generated e-mail. Please, do not answer to this message. If you need to contact us, please write your message to info@interpretercalendars.com<br /><br />';
$mail->AltBody = strip_tags('Hi,<br /><br /><br />Welcome to Interpreter Calendars. To activate your account and start using Interpreter Calendars, please click on the link bellow :<br /><br /><a href="http://interpretercalendars.com">http://interpretercalendars.com</a><br /><br />If your click on the above link doesn\'t work, please copy and paste the entire link into your web browser.<br /><br />We are happy you chose Interpreter Calendars. With best regards<br /><br />The Interpreter Calendars team<br /><br /><br /><br />This is a computer-generated e-mail. Please, do not answer to this message. If you need to contact us, please write your message to info@interpretercalendars.com<br /><br />');
if(!$mail->send()) {
return $mail->ErrorInfo;
} else {
return 0;
}
}
实际上,根据域的不同,一切都可以完美运行。但是在前面的例子中,电子邮件总是被视为垃圾邮件......有没有办法解决这个问题? (反向 DNS 似乎很好,我尝试了许多不同的标头,但也没有工作......)
谢谢你和亲切的问候
提达斯
【问题讨论】:
-
可以尝试使用第三方服务,它会告诉您为什么您的邮件会被发送垃圾邮件? (可能是内容,或者您的域在黑名单上等。)这是我通过谷歌搜索找到的第一个服务,例如:mail-tester.com
-
感谢您提供这个有用的网站 :) 我已经尝试并返回了 9/10。它说“您的邮件未使用 DKIM 签名”。我将检查它是什么以及是否纠正了问题是否已解决。我不知道这是否会使我所有的邮件都被视为垃圾邮件......无论如何谢谢你:) 哦,忘记给你我的结果的链接,第一眼没看到:mail-tester.com/web-rrWygX
-
另一个因素是您要发送到 123-reg.co.uk,这是我的“世界上最糟糕的 ISP”列表之首。请注意,即使他们的垃圾邮件拒绝使用了错误的 SMTP 错误代码 - 照常在 123!
-
哇,他们真的那么糟糕吗?太糟糕了,我不知道该怎么办,人们(使用这个 ISP)无法注册到网站,我的客户认为这是我的错......会尝试联系他们,看看我是否能做点什么(比如要求他们停下来?:P)。感谢您提供此信息:)
-
2019 和 '123-reg.co.uk,仍然是“世界上最糟糕的 ISP”之一。确切的错误,随机取决于您的主题,每半年就会出现一次问题。
标签: email phpmailer spam email-spam