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

[email] not support content charset gb2312

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • None
    • Operating System: other
      Platform: Other

    • 36856

    Description

      when i try the example :
      Email email=new SimpleEmail();
      email.setHostName("129.1.1.129");
      email.setAuthentication("admin","1");
      email.addTo("wangjianquan@eastsoft.com.cn", "wjq");
      email.setFrom("admin@wjq.com", "Me");
      email.setCharset("gb2312");
      email.setSubject("²âÊÔ¼òµ¥Óʼþ");
      email.setMsg("ÕâÊDzâÊÔ¼òµ¥Óʼþ");
      email.send();

      the received mail content like "????????????" ,when change Email.TEXT_PLAIN
      = "text/plain" to TEXT_PLAIN = "text/plain;charset=gb2312" , all are right

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wjq918@hotmail.com locka
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: