<div dir="ltr"><div><div><div>Thanks for the reply Iván.<br><br></div>When I track the SMTP request sent by Keycloak (through tcpdump), I can see the following parameters:<br><br>From: <a href="mailto:admin@xxxxx.com">admin@xxxxx.com</a>
<br>To: <a href="mailto:user@xxxxx.com">user@xxxxx.com</a>
<br>Message-ID: &lt;16547339.4.1432541195530.JavaMail.xxxx@xxxx&gt;
<br>Subject: Reset password
<br>MIME-Version: 1.0
<br>Content-Type: text/plain; charset=us-ascii
<br>Content-Transfer-Encoding: 7bit<br><br></div>The issue here is, since the email process is handled by Keycloak, the client (me) has no control over it. It seems either Keycloak explicitly sets the content-type to be text/plain, or it gets added as a default value. Either way, I haven&#39;t seen any place where I can configure the content-type through Keycloak Admin Console or any other place. Is there such a configurable entry somewhere? Or can I get this done through some other measure?<br><br><br></div><div>Regards,<br></div><div>Lohitha.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 25, 2015 at 2:27 PM, Iván Perdomo <span dir="ltr">&lt;<a href="mailto:ivan@akvo.org" target="_blank">ivan@akvo.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><div class="h5"><br>
<br>
<br>
On 05/25/2015 10:22 AM, Lohitha Chiranjeewa wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; The default email FTLs are in plain text. I have tried to enhance them<br>
&gt; by adding HTML styling. However, when I do that the email bodies don&#39;t<br>
&gt; get styled accordingly. Instead the exact HTML code gets returned in the<br>
&gt; email body.<br>
&gt;<br>
&gt; I have verified that my email server supports HTML styling (through<br>
&gt; external email requests). So what could be the issue here?<br>
<br>
</div></div>My guess the email is using `plain/text` as default content type for the<br>
email. You need to set it up to &quot;text/html; charset=utf-8&quot;<br>
<br>
See:<br>
<br>
*<br>
<a href="https://github.com/keycloak/keycloak/blob/1.2.0.Final/forms/email-freemarker/src/main/java/org/keycloak/email/freemarker/FreeMarkerEmailProvider.java#L142" target="_blank">https://github.com/keycloak/keycloak/blob/1.2.0.Final/forms/email-freemarker/src/main/java/org/keycloak/email/freemarker/FreeMarkerEmailProvider.java#L142</a><br>
* <a href="http://stackoverflow.com/a/5068907" target="_blank">http://stackoverflow.com/a/5068907</a><br>
<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Lohitha.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; keycloak-user mailing list<br>
&gt; <a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Iván<br>
<br>
</font></span><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" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>