Uploaded image for project: 'Commons Email'
  1. Commons Email
  2. EMAIL-142

HtmlEmail with both html and text provided has invalid content-type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.4
    • Labels:
      None

      Description

      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;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcintomiak Marcin Tomiak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified