客户无法从swiftmailer接收邮件

时间:2014-08-28 07:04:59

标签: php email sendmail html-email swiftmailer

我正在尝试使用swiftmailer发送邮件。但是没有邮件接收从我的系统发送的客户端。我使用迷你中继作为我的smtp服务器发送邮件。这是我的代码

<?php
 require_once 'lib/swift_required.php';
 $transport = Swift_SmtpTransport::newInstance('***.**.*.***',25);
 $mailer = Swift_Mailer::newInstance($transport);
 $message = Swift_Message::newInstance();
 $message->setSubject($subject);
 $message->setFrom($headers);
 $message->setBody($mail_body);
 try{
  $message->setTo($value);
  $result = $mailer->send($message);
  echo $message-> toString();
  if($result){
    echo '<script type="text/javascript">alert("Tagged Person Notified Successfully");</script>';
  }
}catch (Swift_RfcComplianceException $e){
  echo '<script type="text/javascript">alert("Email address not valid:"'.$e->getMessage().');</script>';
  echo("<script>window.location = 'post.php?post_id=$post_id&cat_id=$cat_id';</script>");
}
?>

当我发送邮件时,我会收到此提醒:

echo '<script type="text/javascript">alert("Tagged Person Notified Successfully");</script>';

并从邮寄处返回此按摩。

消息ID:&lt; 6ee5bd8846854bc9f39ee03b0cb31e9d @ localhost&gt;日期:星期四,2014年8月28日12:55:50 +0600主题:日期/时间函数来自:dipak_chakraborty@mydomain.com收件人:dipokchakraborty@gmail.com MIME-Version:1.0 Content-Type:text / plain; charset = utf-8 Content-Transfer-Encoding:quoted-printable http:// ***** :80 / post.php?post_id = 3D5&amp; cat_id = 3D60cebd108a640851d20731 = 14066335d1

现在,问题是没有邮件收到我的客户电子邮件帐户。我使用有效的电子邮件地址作为发件人。

请解决任何问题。

0 个答案:

没有答案
相关问题