请问:为什么我这个SMTP邮件格式是纯文本呢?

butnet 2006-08-26 11:34:55
Date: Sat, 26 Aug 2006 11:26:21 +437 (CST)
From: "j" <j@126.com>
To: "j" <j@126.com>
Subject: =?gb2312?B?YiBkaXI9IG5hbWU9YzpcbXlzZW5kLnR4dCBmaWxlcz0wIG51bT0x?=
Message-ID: <2006826112621437@126.com>
X-Mailer: Nicend 1,1
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="first"

This is a multi-part message in MIME format.

--first
Content-Type: multipart/alternative;
boundary="second"


--second
Content-Type: text/plain;
charset="gb2312"
Content-Transfer-Encoding: 7bit

adfs

--second
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: 7bit

<html><font color=red>fsa</font></html>

--second--
--first
Content-Type: application/octet-stream;
name="mysend.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="mysend.txt"

AS0NCg0KLg==

--first--

...全文
291 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
没看这方面的东西,不过JAVAMAIL相关的文档有如何接发HTML邮件的讲解,看看就知道了。
terry_yip 2006-08-26
  • 打赏
  • 举报
回复
不好意思,应该是把“text/plain”改为“text/html”
butnet 2006-08-26
  • 打赏
  • 举报
回复
你写的好像是一样的呢?
terry_yip 2006-08-26
  • 打赏
  • 举报
回复
把text/html改为text/html试试

62,615

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧