douqing5981 2014-12-13 15:25
浏览 54

电子邮件在到达垃圾邮件文件夹前被阻止

$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);

The message never reaches the recipient .. when I open cPanel's Email Trace I get the following error:

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

what i'm doing wrong here? I am not even reaching the spam folder..

  • 写回答

1条回答 默认 最新

  • dongzuan4917 2014-12-13 15:38
    关注

    It's because your server's IP is blocked by the destination mail server. Your server's IP is on their black list so instead of moving your emails to spam folder, they simply ignore your emails.

    To make sure you're blocked, try sending an email to a Gmail address.

    As the error says, you can go to this link for unblocking your server: http://fp.outboundfiltering.com/?str=0001.0

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据