[keycloak-user] Welcome Email after Verification Success

Dmitry Telegin dt at acutus.pro
Mon Nov 12 01:58:30 EST 2018


Hello Rajib,

The phrase in the doc "The Email Event Listener only supports the following events at the moment" and those 4 types boil down to the following 4 template files:

event-login_error.ftl
event-remove_totp.ftl
event-update_password.ftl
event-update_totp.ftl

They can be found under "html" and "text" subdirs under this subtree:
https://github.com/keycloak/keycloak/tree/master/themes/src/main/resources/theme/base/email

Other than that, there are no restrictions on email event types. See this:
https://github.com/keycloak/keycloak/blob/master/services/src/main/java/org/keycloak/email/freemarker/FreeMarkerEmailTemplateProvider.java#L109

Basically, you need to define your own email theme and include event-verify_email.ftl in it.
See this on creating and deploying custom themes:
https://www.keycloak.org/docs/latest/server_development/index.html#_themes

Good luck,
Dmitry Telegin
CTO, Acutus s.r.o.
Keycloak Consulting and Training

Pod lipami street 339/52, 130 00 Prague 3, Czech Republic
+42 (022) 888-30-71
E-mail: info at acutus.pro

On Tue, 2018-11-06 at 16:26 +0000, Mitra Rajib, Bedag wrote:
> Hi!
> 
> I use Keycloak for User-Registration and would like to send a realm-customized "Welcome"-Email after the user verified his email-account.
> 
> The doc at https://www.keycloak.org/docs/3.2/server_admin/topics/events/login.html mentions 4 different type of email events, but none of these events fit my use-case.
> Is there any other way I can (easily) implement such a functionality ?
> 
> Thanks,
> Rajib
> 
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user


More information about the keycloak-user mailing list