Mail message needs to call a template defined in hook_theme

Created on 18 February 2025, about 2 months ago

Problem/Motivation

Mail message defined in send() method calls a template twig with path of module so we can't personalise it. And the variables called in the twig are not replaced by the render system but are replaced with a str_replace.

Proposed resolution

I made a patch that fixes that problems. With this patch, all websites car write their own template "email_login_otp_mail.html.twig" to write the message they want.

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇫🇷France Quentin Massez

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024