[英]PHPMailer emails not sending but there are no errors
I am using PHPMailer and using this PHP Code to send emails: 我正在使用PHPMailer并使用此PHP代码发送电子邮件:
$email = new PHPMailer();
while($result2=mysql_fetch_array($rs2))
{
$email->AddAttachment( $result2["attachment"] , basename($result2["attachment"]) );
}
$email->From = 'Integra Digital';
$email->FromName = $result["emailfrom"];
$email->Subject = $result["subject"];
$email->Body = $result["message"];
$email->AddAddress($result["emailto"]);
$email->IsHTML(true);
if(!$email->Send())
{
echo "<strong>Mailer Error: </strong>" . $email->ErrorInfo;
}
else
{
echo '<strong>Email sent to: </strong>' .implode(',',$emails_list). '<br/ >';
}
$result["emailto"] is equal to a valid email address but i am not receiving the emails $ result [“ emailto”]等于有效的电子邮件地址,但我没有收到电子邮件
any ideas? 有任何想法吗?
看起来像它想要AddAttachment部分在其他所有内容之后并且在Send函数之前
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.