[keycloak-user] Sending Emails with HTML Templates
Iván Perdomo
ivan at akvo.org
Mon May 25 04:57:06 EDT 2015
Hi,
On 05/25/2015 10:22 AM, Lohitha Chiranjeewa wrote:
> Hi,
>
> The default email FTLs are in plain text. I have tried to enhance them
> by adding HTML styling. However, when I do that the email bodies don't
> get styled accordingly. Instead the exact HTML code gets returned in the
> email body.
>
> I have verified that my email server supports HTML styling (through
> external email requests). So what could be the issue here?
My guess the email is using `plain/text` as default content type for the
email. You need to set it up to "text/html; charset=utf-8"
See:
*
https://github.com/keycloak/keycloak/blob/1.2.0.Final/forms/email-freemarker/src/main/java/org/keycloak/email/freemarker/FreeMarkerEmailProvider.java#L142
* http://stackoverflow.com/a/5068907
>
>
> Thanks,
> Lohitha.
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
--
Iván
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/keycloak-user/attachments/20150525/84847caa/attachment.bin
More information about the keycloak-user
mailing list