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

问题描述 投票:2回答:3

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

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 = '[email protected]';
    $mail->Password = 'password_example';
    $mail->SMTPSecure = 'tls';
    $mail->Port = 587;
    $mail->Port = 587;
    $mail->Sender = '[email protected]';
    $mail->From = '[email protected]';
    $mail->FromName = 'Interpreter Calendars';
    $mail->addReplyTo('[email protected]','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 [email protected]<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 [email protected]<br /><br />');

    if(!$mail->send()) {
        return $mail->ErrorInfo;
    } else {
        return 0;
    }

}

实际上,根据域名,一切都很完美。但是在前面的例子中,电子邮件总是被认为是垃圾邮件......有没有办法解决这个问题? (反向DNS似乎很好,我尝试了很多不同的标题但是没有工作......)

谢谢你,亲切的问候

泰达

email phpmailer spam email-spam
3个回答
2
投票

要查看您的设置是否存在导致其他邮件服务器认为是垃圾邮件发送者的明显问题,请尝试从邮件服务器发送邮件至[email protected]。这项服务会进行一系列检查,你会得到一份包含大量信息的报告,例如你的邮件服务器的DNS是否设置正确,你的邮件服务器的IP是否在任何黑名单上,如果你有问题与您的SPF记录等


1
投票

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


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

我尝试使用谷歌SMTP发送相同的电子邮件,没有任何麻烦。

© www.soinside.com 2019 - 2024. All rights reserved.