PHPMailer - 标记为垃圾邮件的电子邮件

时间:2015-02-12 10:17:19

标签: email phpmailer spam email-spam

我目前在某些电子邮件领域遇到了麻烦。实际上,当我向这些域发送消息时,我收到此消息:

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似乎很好,我尝试了很多不同的标题,但也没有工作......)

谢谢你,亲切的问候

泰达

3 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:1)

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

答案 2 :(得分:0)

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发送相同的电子邮件而没有任何麻烦。