sendmail 发件人地址问题

由 ayiiq180 在 04-23-2003 10:10 发表:

sendmail 发件人地址问题

sendmail收件发件均正常,但是有个问题就是发给别人的信件都是From [email protected] ldomain,这样的话自然别人回复就没法发到了,Message-Id: <[email protected]> 这句如何更改后面的为自己的域名?另外每个收件人收到信以后看原始信息to 后都是收件人地址加上[email protected],这 三个问题该如何解决?


由 boy 在 04-23-2003 11:45 发表:


<?

$to = "[email protected]";

$subject = "ZDNet Developer article";

$msg = "I completely understand SMTP servers now!";

$headers = "From: [email protected] \nReply-To: [email protected] ";

$config = "[email protected]";

mail("$to",

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus