commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcin Tomiak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (EMAIL-142) HtmlEmail with both html and text provided has invalid content-type
Date Mon, 28 Jul 2014 18:14:38 GMT
Marcin Tomiak created EMAIL-142:
-----------------------------------

             Summary: 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


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.2#6252)

Mime
View raw message