当前位置: 技术问答>linux和unix
发送邮件的头部问题
来源: 互联网 发布时间:2017-01-03
本文导语: 我用php 函数发出的邮件头总是显示 www@halo.xxx.info; 代表; xx网 Received: from vps.xxx.net (unknown [209.217.*.*]) by cmmx07 (Coremail) with SMTP id dawQrJD7T9D_2HROfakmAg--.733S2; Sun, 18 Sep 2011 01:29:38 +0800 (CST) Received: from halo.xx...
我用php 函数发出的邮件头总是显示
www@halo.xxx.info; 代表; xx网
请问要改哪里才不会显示 xxx代表xxx发送这样的东东?
www@halo.xxx.info; 代表; xx网
Received: from vps.xxx.net (unknown [209.217.*.*])
by cmmx07 (Coremail) with SMTP id dawQrJD7T9D_2HROfakmAg--.733S2;
Sun, 18 Sep 2011 01:29:38 +0800 (CST)
Received: from halo.xxx.info (localhost.localdomain [127.0.0.1])
by vps.xxx.net (8.13.8/8.13.8) with ESMTP id p8HGu43s007922
for ; Sat, 17 Sep 2011 20:56:04 +0400
Received: (from www@localhost)
by halo.xxx.info (8.13.8/8.13.8/Submit) id p8HGu36b007921;
Sun, 18 Sep 2011 00:56:03 +0800
Message-Id:
To: xxx@139.com
Subject: ....
Received: from phpmailer ([173.245.53.142]) by xxx.info with HTTP;
Sat, 17 Sep 2011 17:56:03 +0100
Date: Sat, 17 Sep 2011 17:56:03 +0100
From: "xx网"
X-Priority: 3
X-Mailer: phpmailer [version 1.54]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset = "gb2312"
X-Coremail-Antispam: .....
Sender: www@halo.xxx.info
X-EsetId: 44F39921DB999D3811BE
请问要改哪里才不会显示 xxx代表xxx发送这样的东东?
|
from和sender不一致啊。
在php sendmail里把两个设置成一样的试试。
http://php.net/manual/en/function.mail.php
在php sendmail里把两个设置成一样的试试。
http://php.net/manual/en/function.mail.php