【问题标题】:email getting blocked before reaching the spam folder电子邮件在到达垃圾邮件文件夹之前被阻止
【发布时间】:2014-12-13 15:25:23
【问题描述】:
$transport = Swift_MailTransport::newInstance();
$messages1 = "
<!DOCTYPE>
<html>
    <body>
  Thank you for registering an account on www.satperfectscore.com
          <br>
Please use  <a href=".$mail.">this link</a> to verify your account.
<br>
After verification you will be entitled to 2 practice tests and 300 quiz questions.
   <body>
</html>";
$messages2 = "Use the URL to verify your account: ".$mail."";
$message = Swift_Message::newInstance();
$message->setContentType("text/plain");
$message->setTo($to);
$message->setSubject("Account Verification");
$message->setBody($messages2);
$message->addPart($messages1);
$message->setFrom(array("contact_us@satperfectscore.com"=> "SAT Perfect Score"));


$mailer = Swift_Mailer::newInstance($transport);
$mailer->send($message);

邮件永远不会到达收件人.. 当我打开 cPanel's 电子邮件跟踪时,我收到以下错误:

Event:  failure error    
User:   arasmus1   
Domain: satperfectscore.com    
Sender: contact_us@satperfectscore.com    
Sent Time:  Dec 13, 2014 8:33:20 PM    
Sender Host:    localhost    
Sender IP:  127.0.0.1    
Authentication: localuser    
Spam Score:     
Recipient:  yash1995.momyan@gmail.com    
Delivery User:     
Delivery Domain:        
Delivered To:      
Router: send_via_spamgateway   
Transport:  spamgateway_smtp   
Out Time:   Dec 13, 2014 8:33:20 PM   
ID: 1XzoDt-0006ZH-4J   
Delivery Host:  productio-tcloadba-tkyjfaz4ap1l-328615543.us-west-2.elb.amazonaws.com    
Delivery IP:    54.214.22.243    
Size:   1.56 KB

Result: 
SMTP error from remote mail server after end of data: host productio-tcloadba-tkyjfaz4ap1l-328615543.us-west-2.elb.amazonaws.com [54.214.22.243]: 550 5.7.1 [CS] Message blocked. To fix this, visit http://fp.outboundfiltering.com/?str=0001.0

我在这里做错了什么?我什至没有到达垃圾邮件文件夹..

【问题讨论】:

  • 该邮件已被收件人自己的电子邮件服务器阻止 - 它认为是垃圾邮件。这可能更适合ServerFault
  • 您是否阅读了错误信息?您是否访问了该链接?
  • 这个问题似乎是题外话,因为它是关于电子邮件的传递性,而不是关于编程。

标签: php email swiftmailer


【解决方案1】:

这是因为您的服务器的 IP 被目标邮件服务器阻止。您的服务器的 IP 在他们的黑名单上,因此他们不会将您的电子邮件移至垃圾邮件文件夹,而是直接忽略您的电子邮件。

为确保您被屏蔽,请尝试向 Gmail 地址发送电子邮件。

正如错误所说,您可以访问此链接来解除对服务器的阻止: http://fp.outboundfiltering.com/?str=0001.0

【讨论】:

    猜你喜欢
    • 2013-08-02
    • 2011-06-29
    • 2017-03-02
    • 1970-01-01
    • 2011-04-17
    • 2016-01-03
    • 2011-02-04
    • 1970-01-01
    相关资源
    最近更新 更多