<div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On 3 June 2016 at 06:12, Beljaev Aleksandr <span dir="ltr"><<a href="mailto:a.beljaev@ftc.ru" target="_blank">a.beljaev@ftc.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="RU" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Hello everyone. <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m trying to send html-emails from keycloak administration console to some user, but this user gets only plain text messages.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">As I see in sources, keycloak can work with html, but I don’t know how to switch on this option.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Even if I’m trying to write html in text template, messages are still only text, but with html-tags.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Example for executeActions:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><u><span lang="EN-US">Template html:<u></u><u></u></span></u></p>
<p class="MsoNormal"><span lang="EN-US"><html><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><body><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">${msg(“executeActionsBodyHtml”,link,linkExpiration,realmName)}<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></body><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></html><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><u><span lang="EN-US">Template text:<u></u><u></u></span></u></p>
<p class="MsoNormal"><span lang="EN-US"><html><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><body><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><p>${msg(“executeActionsBody”,link,linkExpiration,realmName)}</p><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></body><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></html><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><u><span lang="EN-US">Template message:<u></u><u></u></span></u></p>
<p class="MsoNormal"><span lang="EN-US">executeActionsBody=PlainTextMessage<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">executeActionsBodyHtml=<p>HtmlTextMessage</p><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><u><span lang="EN-US">Recived email:<u></u><u></u></span></u></p>
<p class="MsoNormal"><span lang="EN-US"><html><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><body><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><p> PlainTextMessage </p><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></body><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"></html><u></u><u></u></span></p>
<p class="MsoNormal"><u><span lang="EN-US"><u></u><span style="text-decoration:none"> </span><u></u></span></u></p>
<p class="MsoNormal"><u><span lang="EN-US"><u></u><span style="text-decoration:none"> </span><u></u></span></u></p>
<p class="MsoNormal"><span lang="EN-US">What am I doing wrong?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">How could I configure KeyCloak to send html messages with template from themes/{theme name}/email/html?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="color:#676767">Aleksandr Belyaev,
<br>
QA engeneer,<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="color:#676767">Center of Financial Technologies,
<br>
e-mail: <a href="mailto:A.Beljaev@ftc.ru" target="_blank"><span style="color:blue">A.Beljaev@ftc.ru</span></a><br>
</span></b><b><span style="color:#676767"><a href="http://www.cft.ru/" target="_blank"><span lang="EN-US" style="color:blue">http://www.cft.ru</span></a></span></b><b><span lang="EN-US" style="color:#676767">
<br>
</span></b><b><span style="font-size:7.0pt;font-family:"Tahoma","sans-serif";color:#676767"><img border="0" width="135" height="46" src="cid:image001.gif@01D1BD7E.33CF07F0" alt="cid:InlineMailImage_6944a6d1aaad40e886cadb18d509edf8.gif"></span></b><b><span lang="EN-US" style="font-size:7.0pt;font-family:"Tahoma","sans-serif";color:#676767"> </span></b><b><span lang="EN-US" style="color:#676767"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
<br>_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>