邮件发送的时候附件是zip, 为什么接收的时候是txt?

来源:百度知道 编辑:UC知道 时间:2024/09/21 15:28:42
附上附件部分的源代码供解决问题用:
------=_NextPart_001_0014_01C7AF2D.5E209050--

------=_NextPart_000_0013_01C7AF2D.5E209050
Content-Type: text/plain;
name="ATT00068.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="ATT00068.txt"

--===__BoUnDaRy_1181799807_0_Paran__===
Content-Type: application/octet-stream;
name="=?euc-kr?B?SW5xdWlyeV9wcmljZS56aXA=?="
Content-Disposition: attachment;
filename="=?euc-kr?B?SW5xdWlyeV9wcmljZS56aXA=?="
Content-Transfer-Encoding: base64

删除:Content-Type: text/plain;
name="ATT00068.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="ATT00068.txt"

--===__BoUnDaRy_1181799807_0_Paran__===
并把源代码另存为.eml格式,然后用邮件软件打开即可

直接把后缀名txt改为zip试下看能不能打开拉