Commons Email
  1. Commons Email
  2. EMAIL-79

SimpleEmail#setMsg() with UTF-8 content honors correct charset in header, but doesn't encode the content correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Labels:
      None
    • Environment:

      Windows Vista, JDK 1.6.0_06

      Description

      When I create a new SimpleEmail and use setMsg(some-utf8-text), the Content-Type header of the generated email correctly changes to UTF-8, but the content is not encoded correctly.

      Adding setCharset("UTF-8") solves the problem, but that shouldn't be needed, as the change of Content-Type header indicates.

      1. EMAIL-79-patch-v2.txt
        4 kB
        Corey Scott
      2. EMAIL-79-patch.txt
        3 kB
        Corey Scott
      3. EmailTest.zip
        1 kB
        Edvin Syse

        Activity

        Edvin Syse created issue -
        Edvin Syse made changes -
        Field Original Value New Value
        Attachment EmailTest.zip [ 12394636 ]
        Corey Scott made changes -
        Attachment EMAIL-79-patch.txt [ 12394818 ]
        Siegfried Goeschl made changes -
        Assignee Siegfried Goeschl [ sgoeschl ]
        Siegfried Goeschl made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Corey Scott made changes -
        Attachment EMAIL-79-patch-v2.txt [ 12399963 ]
        Siegfried Goeschl made changes -
        Fix Version/s 1.2 [ 12313573 ]
        Siegfried Goeschl made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Siegfried Goeschl made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Siegfried Goeschl
            Reporter:
            Edvin Syse
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development