How to change the "Reset Password" email subject line in Keycloak?

Hi everyone,

I’m trying to customize the subject line of the “Reset Password” email in Keycloak. By default, the subject is always “Reset Password”

I created a custom theme and placed the file at:

themes/CeTheme/email/messages/password-reset.properties

Inside that file, I have:

subject=Text personalised

I also configured my realm to use this custom email theme, and the theme is working because changes in password-reset.ftl are reflected in the email body.

However, no matter what I put in the .properties file, the subject line remains the default “Reset Password”.

Question: Is it actually possible to override the subject line of the reset password email? If yes, what is the correct way to do it?

Thanks in advance!

The messages properties file is a language-specific file, not a template-specific file. It must be named messages_en.properties (e.g. for default language englisch).

The property you want to overwrite is called passwordResetSubject.

1 Like