This is the documentation for v9, checkout the latest version
Keycloakify
v9
  • Keycloakify
  • Release Notes & Upgrade Instructions
  • FAQ
v9
  • 👨‍💻Quick start
  • 📥Importing your theme in Keycloak
  • 🔩Keycloakify in my App
  • 🖼️Importing assets and fonts
  • 📧Email customization
  • ✒️Terms and conditions
  • ✅Realtime input validation and custom registration fields
  • ⚠️Limitations
  • 🔧Environment Variables
  • 🌎i18n: msg(...)
  • 📖Build options
  • 💂Email domain acceptlist
  • 🛑Keycloak error in log
  • 🌉Passing values from the App to the theme
  • 💟Contributing
  • 🤔How it works
  • ⬆️Migration guides
    • ⬆️CRA -> Vite
    • ⬆️v8 -> v9
    • ⬆️v7 -> v8
    • ⬆️v6 -> v7
    • ⬆️v6.x -> v6.12
    • ⬆️v5 -> v6
Powered by GitBook
On this page

Was this helpful?

Email customization

Customize the default email template

PreviousImporting assets and fontsNextTerms and conditions

Last updated 2 days ago

Was this helpful?

Introduced in

Currently, customizing emails with React is not possible, and you must use FreeMarker instead. If this poses a significant obstacle for you, please to discuss it further.

It is now possible to customize the emails sent to your users to confirm their email address ect. Just run npx initialize-email-theme.

For this script to work you must be in one of these scenarios:

  • src/login or src/account exists, if it's the case it will assume that this is a standalone keycloak theme and create src/email

  • There is a keycloak-theme directory somewhere in your src directory. If it's the case it will create src/**/keycloak-theme/email.

This directory should be tracked by Git (yarn add -A) You can start hacking the default template.

You can remove all the template and resource file you aren't going to customize (it will fallback to the default email theme as long as you keep a theme.properties with parent=base). When npx keycloakify (yarn keycloak) is run it will bundle your email theme into your .jar file and you will be able to select it in the Keycloak administration pages.

📧
v4.8.0
open a new issue
Cloud IAM - Keycloak Identity and Access Management as a Service
Feeling overwhelmed? Check out our exclusive sponsor's Cloud-IAM consulting services to simplify your experience.
Selecting your email theme in the Keycloak admin
Logo