一开始,我以为是在mail from:设置.后来测试才明白,原来不是.
原来是在data中对head的from:进行设置,让收件服务器自己解析.
效果
eml内容
---
Received: from poster.myhrd.cn (unknown [124.254.8.171])
by newmx21.qq.com (NewMx) with SMTP id
for <qidizi@qq.com>; Mon, 03 Sep 2012 16:34:02 +0800
X-QQ-SSF: 00500000000000010bF00002000000
X-QQ-mid: mx21t1346661242t919aw8uu
Received: from localhost.localdomain (localhost [127.0.0.1])
by poster.myhrd.cn (Postfix) with ESMTPA id 7B1BB102785
for <qidizi@qq.com>; Mon, 3 Sep 2012 16:30:01 +0800 (CST)
Date: Mon, 3 Sep 2012 16:30:01 +0800
From: =?utf-8?Q?=e4=b8=ad=e4=ba=ba=e7=bd=91?= <post@poster.myhrd.cn>
To: qidizi@qq.com
Subject: =?utf-8?Q?(AD)=e8=bf=99=e6=98=af=e4=b8=80=e4=b8=aa=e4=b8=ad=e5=8f=b3=e5
?=
=?utf-8?Q?=9b=bd=e6=a5=9e=e8=86=a6=e5=9b=a0=e5=9b=bd=e5=9c=a8?=
Reply-To: "post@poster.myhrd.cn" <post@poster.myhrd.cn>
X-Sender: post@poster.myhrd.cn
X-Priority: 3 (Normal)
Message-ID: <50446a89525fb@poster.myhrd.cn>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_50446a8952bc2"
This is a multi-part message in MIME format.
Your email application may not support this format.
--B_ALT_50446a8952bc2
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
=E5=9B=A0=E9=9B=B7=E8=BE=BE=E5=9B=BD=E8=BD=B1=E8=BE=98
--B_ALT_50446a8952bc2
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<title></title>
</head>
<body>
<p>
因雷达国轱辘</p>
</body>
</html><center><a href=3D"http://myhrd.cn/edm/index.php?d=3Dhome&c=3Dstatis=
tik&m=3Dunsubscribe&letter=3D228&email=3D343869">退订本信</a></center><=
img width=3D1 height=3D1 src=3D"http://myhrd.cn/edm/index.php?d=3Dhome&c=3D=
statistik&m=3Dimg&letter=3D228&email=3D343869" />
--B_ALT_50446a8952bc2--