Email notification settings ignored

Created on 2 July 2024, 11 months ago
Updated 6 August 2024, 10 months ago

Problem

For some reasons, customizing the body of the email notification doesn't result in a customized warning email.

I added a few text lines in French below the English content, and changed some of the tokens with those already suggested below the textbox. The message is being saved correctly; if I reload the Settings page to verify if my changes were applied, everything is there. However, the default module's message is being sent to the user instead in the password expiration warning email. Any one else encountered this before? Thank you for your help.

🐛 Bug report
Status

Fixed

Version

1.16

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Fixed 11 months ago
  • I found a way to make the customized email subject and body to work. It turned out the function _password_policy_mail_text() was looking for an i18n variable even if the variable had not been turned on, and since there was none set when the module was enabled, it was returning the default value that has been defined at the beginning of the module's file. Under that condition, any text modification to the email subject and body content from the administration page was ignored.

    To make things work, I had to go to "Configuration > Regional and language > Multilingual settings > Variables > User emails" and enable "Password Policy warning e-mail", then go back to the Password policies settings and edit the email notification for the languages I had available. Only then the customized message started to be used in the emails sent to the users.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024