Hi,
Thanks for your suggestions. After reading a lot about email client support for image
embedding in emails (e.g. the solution from Jérôme is blocked by Outlook), I think the
best solution is to implement my own email sender provider and link the images to the
attachments (using CID) .
@Stian Thorgersen: My understanding is that I will have to override the
EmailTemplateProvider based on the FreemarkerEmailTemplateProvider (or can I just extend
from this one?) to fetch attachments from a path e.g. /attachments/ and pass them to the
EmailSenderProvider, am I correct?
Regards
Jonathan
From: Jérôme Blanchard [mailto:jayblanc@gmail.com]
Sent: Freitag, 8. Dezember 2017 11:53
To: stian(a)redhat.com
Cc: Scheinmann, Jonathan <jonathan.scheinmann(a)hpe.com>;
keycloak-user(a)lists.jboss.org
Subject: Re: [keycloak-user] customize email themes with images
Hi,
If your goal is to display a kind of logo or some image in the mail, you can include it as
an embedded image using <img src="data:image/png;base64,.... "/>
It's not perfect as some email clients (like gmail) don't display this kind of
image but it can do the trick before finding a better solution.
BR, Jérôme.
Le ven. 8 déc. 2017 à 10:31, Stian Thorgersen
<sthorger@redhat.com<mailto:sthorger@redhat.com>> a écrit :
I don't think you can do this out of the box today, but you should be able
to create a custom email sender provider that does it. Look at docs for
details on creating custom providers (as well as quickstarts on examples).
Then look at EmailSenderProvider and the implementations in our repo.
On 8 December 2017 at 09:45, Scheinmann, Jonathan <
jonathan.scheinmann@dxc.com<mailto:jonathan.scheinmann@dxc.com>> wrote:
Hi community,
I am looking for a way to add images to custom keycloak email themes. Our
company template HTML uses the images sent as attachment. I would therefore
like to attach the required images to the email. If this is not possible,
what would be the correct way to add images to the HTML template?
Unfortunately the current documentation does not state anything of it:
http://www.keycloak.org/docs/3.3/server_development/topics/themes.html
Regards
Jonathan
_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org<mailto:keycloak-user@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-user
_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org<mailto:keycloak-user@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-user