数字html显示e的格式化,格式化多部分HTML /文本電子郵件以在Internet Explorer中工作...

I made an application using JavaMail which reads e-mail and takes its content. The content will be fetched in HTML. This content will be analyzed and then forwarded to another e-mail address.

我使用JavaMail創建了一個應用程序,它可以讀取電子郵件並獲取其內容。內容將以HTML格式提取。將分析此內容,然后將其轉發到另一個電子郵件地址。

I've tested the e-mail's layout in Chrome, Mozilla, Outlook, Office 365, Thunderbird and Internet Explorer. Everything works well, except, of course, IE.

我已經在Chrome,Mozilla,Outlook,Office 365,Thunderbird和Internet Explorer中測試了電子郵件的布局。一切都運作良好,當然除了IE。

I made some screenshots, one in Chrome and the other in Internet Explorer, both from the same mail client (Office 365).

我在同一個郵件客戶端(Office 365)上制作了一些截圖,一個在Chrome瀏覽器中,另一個在Internet Explorer中。

Good email in Chrome

9ce653ddb7a85d6f2386d4b5281e9002.jpe

Misformed IE E-mail

03abaf4964e38d42b02204d39209470a.jpe

I put together a multipart e-mail, a part for the content and one for attachments. This is the code I am using:

我整理了一份多部分電子郵件,一部分內容和一部分附件。這是我正在使用的代碼:

public void SentTest(String messageContent) throws IOException, ParseException, NoSuchProviderException {

//Only get text between HTML tags

Pattern pattern = Pattern.compile(".*?(.*?)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值