我想发一封电子邮件A到B..标头和含量通过Gmail。如何用PHP实现这一点?我已经指定了从…(来自@example.com),但当我收到这封邮件时,它仍然来自我的Gmail帐户(ABC@gmail.com)。(资料来源:maishudi.com)$mail->From = "from@example.com";$mail->FromName = "Mailer";$mail->AddAddress("abc12@163.com", "Josh Adams");
// name is optional$mail->AddReplyTo("abc12@qq.com", "Information");如何更改从…部分?
3 回答

元芳怎么了
TA贡献1798条经验 获得超7个赞

繁星coding
TA贡献1797条经验 获得超4个赞
$to = 'nobody@example.com';$subject = 'the subject';$message = 'hello';$headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();mail($to, $subject, $message, $headers);
- 3 回答
- 0 关注
- 1420 浏览
添加回答
举报
0/150
提交
取消