[keycloak-user] Email internationalization

Nekrasov Aleksandr a.nekrasov at ftc.ru
Mon Jun 6 08:12:26 EDT 2016


Hello everyone.
I found a bug when trying to send email from keycloak to users with encoding against English.
For example, when I try to send Russian message with subject "Обновите вашу учётную запись" I see "????????????? ?????? ??????????? ?????" in my email.

I think you should update org.keycloak.email.DefaultEmailSenderProvider class with line
msg.setSubject(subject);
to
msg.setSubject(MimeUtility.encodeText(subject, "utf-8", "B"));

Thanks.

Nekrasov Aleksander,
Developer,
Center of Financial Techologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160606/bea2f782/attachment.html 


More information about the keycloak-user mailing list