如何用php设置"Return-Path“?
我尝试过的
$subject = "title \"" . $row['title'] . "\"";
$headers = "From: test <no_replay@test.com>\r\n";
$headers .= "Return-Path: no_replay@test.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
mail($email,$subject,$addletter,$headers);从gmail源中我看到了Return-Path: <apache@localhost.localdomain>
发布于 2013-06-18 20:09:42
对于Windows ,返回路径:应该可以工作。在linux上,你必须使用-f sendmail选项。更多信息可以在这里找到http://php.net/manual/en/function.mail.php
mail($email,$subject,$addletter,$headers, "-fno_replay@test.com");https://stackoverflow.com/questions/17168366
复制相似问题