【发布时间】:2014-04-03 14:27:13
【问题描述】:
我正在使用mail() 发送电子邮件问题是如果收件人 ID 不存在,我没有收到特定电子邮件 ID 的电子邮件,我尝试了以下代码。
$email="abcdt01est@gmail.com";
$usermsg="some message here";
$subject = 'Your Account Registration Confirmation';
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: Our Team <team@test.com>" . "\r\n";
$headers.="Return-Path:<my email id goes here>\r\n";
mail($email, $subject, $usermsg, $headers);
我也试过
mail("abcdt01est@gmail.com", "subject", "body of message", "From: team@test.com", "-f<my email id>");
【问题讨论】:
-
所以你在给我写那些邮件?顺便说一句,我记得你总是需要使用 \r\n 作为行分隔符。
-
说清楚你想要什么..?
-
Catch email bounce 的可能重复项
-
我希望邮件在退回时应该转到我的电子邮件 ID,当我说退回时意味着如果收件人电子邮件 ID 不存在。