当前位置 > 首页 > Asp.net

System.Net.Mail 发送邮件的问题

2011-10-26 16:52:00来源:Asp.net

System.Net.Mail 发了封测试邮件

 

Content-Type: text/plain; charset=us-ascii

Content-Transfer-Encoding: quoted-printable

X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73

VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUyxsqDUUUU

Message-Id: <4EA7C122.1839F6.14800@m12-71.163.com>

 

asdf

不是base64编码的。
mailMessage.Headers["Content-Transfer-Encoding: "]="base64";
            mailMessage.BodyEncoding=Encoding.Default;
            mailMessage.Body = Base64Encoding(mailMessage.Body);
想改成base64进行发送,结果失败了。
收到的邮件是
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: quoted-printable
Message-Id: <4EA7CA87.1665E6.27275@m12-64.163.com>
YmJiYg=3D=3D