gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 04:23:50 25 4
gpt4 key购买 nike

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

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 = '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2e5b5d4b5c404f434b714b564f435e424b6e47405a4b5c5e5c4b5a4b5c4d4f424b404a4f5c5d004d4143" rel="noreferrer noopener nofollow">[email protected]</a>';
$mail->Password = 'password_example';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->Port = 587;
$mail->Sender = '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0c6263217e697c60754c656278697e7c7e6978697e6f6d606962686d7e7f226f6361" rel="noreferrer noopener nofollow">[email protected]</a>';
$mail->From = '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2648490b5443564a5f664f4852435456544352435445474a4348424754550845494b" rel="noreferrer noopener nofollow">[email protected]</a>';
$mail->FromName = 'Interpreter Calendars';
$mail->addReplyTo('<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d3bdbcfea1b6a3bfaa93babda7b6a1a3a1b6a7b6a1b0b2bfb6bdb7b2a1a0fdb0bcbe" rel="noreferrer noopener nofollow">[email protected]</a>','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 <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="70191e161f30191e04150200021504150213111c151e141102035e131f1d" rel="noreferrer noopener nofollow">[email protected]</a><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 <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e777078715e77706a7b6c6e6c7b6a7b6c7d7f727b707a7f6c6d307d7173" rel="noreferrer noopener nofollow">[email protected]</a><br /><br />');

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

}

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

谢谢您并致以亲切的问候

提达斯

最佳答案

要查看您的设置是否存在导致其他邮件服务器认为这是垃圾邮件发送者的明显问题,请尝试从您的邮件服务器向 [email protected] 发送消息。 。该服务将进行大量检查,如果您遇到问题,您将收到包含大量信息的报告,例如您的邮件服务器的 DNS 设置是否正确,您的邮件服务器的 IP 是否在黑名单中与您的 SPF 记录等。

关于email - PHPMailer - 标记为垃圾邮件的电子邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28474803/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com