qq286735628
2012-07-09 14:21:22 +08:00
找到原因了~
纯文本的邮件,貌似只能使用GB2312进行编码
这个是Foxmail设置纯文本发送后,哪怕我设置了UTF-8,依然以gb2312来发送
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: base64
然后如果是html邮件的话,正文部分就用base64进行了encode
Content-Type: multipart/related;
boundary="----=_001_NextPart737547160675_=----"
This is a multi-part message in MIME format.
------=_001_NextPart737547160675_=----
Content-Type: multipart/alternative;
boundary="----=_002_NextPart343534214040_=----"
------=_002_NextPart343534214040_=----
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: base64
Rm94bWFpbOeUqHV0Zi0457yW56CB6YKu5Lu25Y+R6YCBDQoNCg0KDQoNCum7juWNmg0KIA0K56CU
5Y+R6YOoIOWunuS5oCAgICAgICAgICAgICAgICANCuW4t+WNg+enu+WKqOWcqOe6v++8iOW5v+W3
nu+8ieS/oeaBr+enkeaKgOaciemZkOWFrOWPuCAgIA0KV1FNb2JpbGUgVGVjaG5vbG9neSBMdGQu
DQrnlLXor50oVGVsKe+8mis4NjIwIDM4ODMgODc5MSAgICAgICANCuS8oOecnyhGYXgp77yaKzg2
MjAgMzg4MyA4MTUwDQrmiYvmnLooTW9iKe+8mjEzNiAxMDE5IDg5NzIgDQrmnI3liqHng63nur8o
SG90bGluZSnvvJo0MDAwIDk5OSA3NzANCg0Kd3d3LldRTW9iaWxlLmNvbQ0K5Lit5Zu95omL5py6
5bqU55So6JCl6ZSA6aKG5Z+f6aKG6Iiq6ICF
------=_002_NextPart343534214040_=----
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
=EF=BB=BF