Hello, I'm trying to send Japanese UTF8 email by using Typesafe Email plugin on Java play2.I can send text emails successfully, however the charactor code are set as "charset=ANSI_X3.4-1968" on heroku server and cannot read them.I can send Japanese "charset=ISO-2022-JP" emails successfully, from my developping Japanese OS server(LANG = ja_JP.UTF-8).Anybody knows to fix this problem?My program is like this.String mailtitle = "Japanese title";String mailbody = "Japanese mail body";MailerAPI mail = play.Play.application().plugin(MailerPlugin.class).email();mail.setCharset("UTF-8");mail.addHeader("Content-Transfer-Encoding", "7bit");mail.setSubject(mailtitle);mail.addRecipient("exa...@foo.com");mail.addFrom("Example site <nor...@foo.com>");mail.send( mailbody );Thank you for your help in advance.
Hello, I'm trying to send Japanese UTF8 email by using Typesafe Email plugin on Java play2.I can send text emails successfully, however the charactor code are set as "charset=ANSI_X3.4-1968" on heroku server and cannot read them.I can send Japanese "charset=ISO-2022-JP" emails successfully, from my developping Japanese OS server(LANG = ja_JP.UTF-8).Anybody knows to fix this problem?
My program is like this.String mailtitle = "Japanese title";String mailbody = "Japanese mail body";MailerAPI mail = play.Play.application().plugin(MailerPlugin.class).email();mail.setCharset("UTF-8");mail.addHeader("Content-Transfer-Encoding", "7bit");mail.setSubject(mailtitle);mail.addRecipient("exa...@foo.com");mail.addFrom("Example site <nor...@foo.com>");mail.send( mailbody );Thank you for your help in advance.