【问题标题】:PHPMailer - E-mails tagged as spamPHPMailer - 标记为垃圾邮件的电子邮件
【发布时间】: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


【解决方案1】:

123-reg.co.uk 是一个非常糟糕的服务,它会将查看您主题中的文本的垃圾邮件标记/拒绝,并且这些条件非常严格,主题文本中没有名称/电子邮件地址/数字/长文本。

使用 123-reg.co.uk 作为 SMTP 提供商的用户很可能会在某个时候到达:

SMTP Error: Mailcore(2503): Your email was detected as spam. SA (RCPTs: ...)SMTP code: 550

我尝试使用 google SMTP 发送相同的电子邮件,完全没有问题。

【讨论】:

    【解决方案2】:

    要查看您的设置是否存在会导致其他邮件服务器认为它是垃圾邮件发送者的明显问题,请尝试从您的邮件服务器向 check-auth@verifier.port25.com 发送消息。该服务将进行大量检查,您将收到包含大量信息的报告,例如您的邮件服务器的 DNS 是否设置正确,您的邮件服务器的 IP 是否在任何黑名单上,如果您有问题与您的 SPF 记录等。

    【讨论】:

    • 谢谢 :) 结果如下:SPF 检查:通过,DomainKeys 检查:中性,DKIM 检查:中性,Sender-ID 检查:通过,SpamAssassin 检查:火腿。看起来不错,但看起来更深入我已经看到了这个:interpretercalendars.com。 SPF(无记录)+ spf.infomaniak.ch。 SPF(无记录),这是否意味着我有 DNS 问题? SPF 的结果是通过,所以不明白我是否对此有问题
    【解决方案3】:

    您的内容类型和 MIME 标头丢失。而且我听说你应该实现发送邮件的 PHP 版本,如果没有设置这些标头,有时它会被标记为垃圾邮件。

    【讨论】:

    • 如果我错了,请纠正我,但是 PHPMailer 会自动将 MIME 和 Content-Type 添加到消息号中?在源代码中:mail-tester.com/web-rrWygX MIME 类型和 content-Type 看起来很好声明
    猜你喜欢
    • 2011-02-08
    • 2010-11-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-22
    • 2022-01-09
    • 2016-01-15
    • 2012-09-13
    相关资源
    最近更新 更多