[
https://issues.apache.org/jira/browse/EMAIL-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153731#comment-14153731
]
Thomas Neidhart commented on EMAIL-142:
---------------------------------------
I did check their rfc reference and your statement is correct, I was just
wondering if modern email clients would still handle the message correctly.
Fixing this would not require much changes, as we only need to check if there
are other attachments and if not use the root mime container with type
alternative to add the text and html message part.
> HtmlEmail with both html and text provided has invalid content-type
> --------------------------------------------------------------------
>
> Key: EMAIL-142
> URL: https://issues.apache.org/jira/browse/EMAIL-142
> Project: Commons Email
> Issue Type: Bug
> Affects Versions: 1.3.2
> Reporter: Marcin Tomiak
> Fix For: 1.3.3
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> If I set both html and plain text for HtmlEmail i.e.:
> email.setHtmlMsg(htmlMessage);
> email.setTextMsg(plainTextMessage);
> then message which is sent has Content-type: multipart/mixed;
> This content type is recognized for example by Mozilla Thunderbird as a
> message with attachment.
> Correct content-type for this kind of email is Content-type:
> multipart/alternative;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)