Wiki source code of Customize the Authentication Mail Templates
Last modified by Eleni Cojocariu on 2026/08/12 16:43
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | To change the emails XWiki sends when a user requests a password reset or a forgotten user name: | ||
| 2 | |||
| 3 | 1. Go to the ##XWiki.ResetPasswordMailContent## page for the password reset message, or to ##XWiki.ForgotUsernameMailContent## for the forgotten user name one. | ||
| 4 | 1. Edit the page with the [[object editor>>documentation.xs.user.base.page.edit-page.edit-object-editor.WebHome]]. | ||
| 5 | 1. Expand the "XWiki.Mail" object.((( | ||
| 6 | {{image reference="mail-template-object.png" size="extra" alt="The XWiki.Mail object of the password reset template in the object editor, with the subject property outlined"/}} | ||
| 7 | ))) | ||
| 8 | 1. Change the "subject", "html" and "text" properties, keeping the Velocity variables they contain. | ||
| 9 | 1. Click "Save". | ||
| 10 | 1. Request a password reset for a test user and check that the message received uses your wording. |