Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 690 Bytes

你发的邮件有乱码吗

Subject乱码

比对

  • 别人家发的邮件Subject源码 Subject: =?UTF-8?B?6Kej5p6Q6K6w5b2V5Yig6Zmk6YCa55+l?= 显示正常
  • 我发的邮件Subject源码 Subject: TransferEasyÈ™åËØÅÁ†Å 部分邮箱显示乱码
  • 任意邮箱都有"查看源码"选项来获得上面的内容

问题

  • 我的编码字段哪里去了?

解决

  • 代码发送邮件时加工下主题,这里以Python为例 '=?utf-8?B?' + base64.b64encode(your_email_subject) + '?='
  • 我发的邮件Subject源码 Subject: =?utf-8?B?44CQ5YWl6YeR44CR5a+56LSm57uT5p6c?= 显示正常

正文乱码

  • 我还没遇到

发件人乱码

  • 我还没遇到
You can’t perform that action at this time.