I’ve done a similar thing by implementing an EventListener to trigger on EventType.REGISTER. Then you can send a custom email by getting the EmailTemplateProvider from the session, and rendering a custom .ftl template. For example:
There are several example projects with Keycloak event listeners and email themes. Search for some of those, and then post any specific questions you have if you get stuck.
Is there a way to change email template contents from the keycloak UI instead of setting it from themes.
And we’re including the welcome email content into that verification mail only.
from where we can manage that email verification expiry time from keycloak