$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
我在这里做错了什么?我甚至没有到达垃圾邮件文件夹..
答案 0 :(得分:0)
这是因为您的服务器的IP被目标邮件服务器阻止了。您的服务器的IP位于黑名单中,因此不会将您的电子邮件移至垃圾邮件文件夹,而是忽略您的电子邮件。
要确保您已被屏蔽,请尝试向Gmail地址发送电子邮件。
如错误所示,您可以转到此链接以取消阻止您的服务器: http://fp.outboundfiltering.com/?str=0001.0