<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hi Aleksandr!</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">What is your Wildfly version?</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Wildfly 8 has buggy Java Mail API. In Wildfly 9 and later proper encoding is done automatically, no need to `encodeText` manually.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">See my answer here:&nbsp;http://stackoverflow.com/questions/35010796/wildfly-9-x-fails-encoding-greek-attachment-filenames</div> <br> <div class="bloop_sign" id="bloop_sign_1465276671973486848"><div style="font-family:helvetica,arial;font-size:13px">--&nbsp;<br>Tair Sabirgaliev<br><br></div></div> <br><p class="airmail_on">On 7 June 2016 at 11:03:50, keycloak-user-request@lists.jboss.org (<a href="mailto:keycloak-user-request@lists.jboss.org">keycloak-user-request@lists.jboss.org</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>Message: 1
<br>Date: Mon, 6 Jun 2016 12:12:26 +0000
<br>From: Nekrasov Aleksandr &lt;a.nekrasov@ftc.ru&gt;
<br>Subject: [keycloak-user] Email internationalization
<br>To: "keycloak-user@lists.jboss.org" &lt;keycloak-user@lists.jboss.org&gt;
<br>Message-ID: &lt;59219ba4c1b449d0a2bded5436b8ca6a@nut-mbx-4.win.ftc.ru&gt;
<br>Content-Type: text/plain; charset="koi8-r"
<br>
<br>Hello everyone.
<br>I found a bug when trying to send email from keycloak to users with encoding against English.
<br>For example, when I try to send Russian message with subject "???????? ???? ??????? ??????" I see "????????????? ?????? ??????????? ?????" in my email.
<br>
<br>I think you should update org.keycloak.email.DefaultEmailSenderProvider class with line
<br>msg.setSubject(subject);
<br>to
<br>msg.setSubject(MimeUtility.encodeText(subject, "utf-8", "B"));
<br>
<br>Thanks.
<br>
<br>Nekrasov Aleksander,
<br>Developer,
<br>Center of Financial Techologies
<br>-------------- next part --------------
<br>An HTML attachment was scrubbed...
<br>URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160606/bea2f782/attachment-0001.html  
<br>
<br>------------------------------
<br>
<br>Message: 2
<br>Date: Mon, 6 Jun 2016 19:38:59 +0200
<br>From: Stian Thorgersen &lt;sthorger@redhat.com&gt;
<br>Subject: Re: [keycloak-user] Email internationalization
<br>To: Nekrasov Aleksandr &lt;a.nekrasov@ftc.ru&gt;
<br>Cc: "keycloak-user@lists.jboss.org" &lt;keycloak-user@lists.jboss.org&gt;
<br>Message-ID:
<br>        &lt;CAJgngAeDFzb96dtFGgz59_RE-A3oGAJUNsNFPA-xXjxvYWipGw@mail.gmail.com&gt;
<br>Content-Type: text/plain; charset="utf-8"
<br>
<br>Please create a JIRA. If you want to submit a PR that would be welcome as
<br>well.
<br>
<br>On 6 June 2016 at 14:12, Nekrasov Aleksandr &lt;a.nekrasov@ftc.ru&gt; wrote:
<br>
<br>&gt; Hello everyone.
<br>&gt;
<br>&gt; I found a bug when trying to send email from keycloak to users with
<br>&gt; encoding against English.
<br>&gt;
<br>&gt; For example, when I try to send Russian message with subject ?????????
<br>&gt; ???? ??????? ??????? I see ?????????????? ?????? ??????????? ?????? in my
<br>&gt; email.
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; I think you should update org.keycloak.email.DefaultEmailSenderProvider
<br>&gt; class with line
<br>&gt;
<br>&gt; msg.setSubject(subject);
<br>&gt;
<br>&gt; to
<br>&gt;
<br>&gt; msg.setSubject(MimeUtility.*encodeText*(subject, *"utf-8"*, *"B"*));
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; Thanks.
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt; Nekrasov Aleksander,
<br>&gt;
<br>&gt; Developer,
<br>&gt;
<br>&gt; Center of Financial Techologies
<br>&gt;
<br>&gt; _______________________________________________
<br>&gt; keycloak-user mailing list
<br>&gt; keycloak-user@lists.jboss.org
<br>&gt; https://lists.jboss.org/mailman/listinfo/keycloak-user
<br>&gt;
<br>-------------- next part --------------
<br>An HTML attachment was scrubbed...
<br>URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160606/21c2041b/attachment-0001.html  
<br>
<br>------------------------------
<br></div></div></span></blockquote></body></html>