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(a)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(a)ftc.ru
<A.Beljaev(a)ftc.ru> **http://www.cft.ru <
http://www.cft.ru/>*
*[image: cid:InlineMailImage_6944a6d1aaad40e886cadb18d509edf8.gif]*
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user