[keycloak-user] Email Html template does not work... I guess

Stian Thorgersen sthorger at redhat.com
Fri Jun 3 01:49:30 EDT 2016


Emails are sent with multi-part so both the html and text version is
included in the email. If the user only sees the text version it's quite
likely the user has configured the mail client to always show the text
version.

On 3 June 2016 at 06:12, Beljaev Aleksandr <a.beljaev at ftc.ru> wrote:

> Hello everyone.
>
> I’m trying to send html-emails from keycloak administration console to
> some user, but this user gets only plain text messages.
>
> As I see in sources, keycloak can work with html, but I don’t know how to
> switch on this option.
>
> Even if I’m trying to write html in text template, messages are still only
> text, but with html-tags.
>
>
>
> Example for executeActions:
>
>
>
> *Template html:*
>
> <html>
>
> <body>
>
> ${msg(“executeActionsBodyHtml”,link,linkExpiration,realmName)}
>
> </body>
>
> </html>
>
>
>
> *Template text:*
>
> <html>
>
> <body>
>
> <p>${msg(“executeActionsBody”,link,linkExpiration,realmName)}</p>
>
> </body>
>
> </html>
>
>
>
> *Template message:*
>
> executeActionsBody=PlainTextMessage
>
> executeActionsBodyHtml=<p>HtmlTextMessage</p>
>
>
>
> *Recived email:*
>
> <html>
>
> <body>
>
> <p> PlainTextMessage </p>
>
> </body>
>
> </html>
>
>
>
>
>
> What am I doing wrong?
>
> How could I configure KeyCloak to send html messages with  template from
> themes/{theme name}/email/html?
>
>
>
>
>
>
> *Aleksandr Belyaev, QA engeneer,*
>
>
>
> *Center of Financial Technologies, e-mail: A.Beljaev at ftc.ru
> <A.Beljaev at ftc.ru> **http://www.cft.ru <http://www.cft.ru/>*
> *[image: cid:InlineMailImage_6944a6d1aaad40e886cadb18d509edf8.gif]*
>
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160603/46612775/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1171 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20160603/46612775/attachment-0001.gif 


More information about the keycloak-user mailing list