Uploaded image for project: '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
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: