Allow setParams in all phases

Created on 6 November 2023, about 1 year ago
Updated 9 November 2023, about 1 year ago

Problem/Motivation

LogicException: setParams function is only valid in phases 0-0, called in 3. in Drupal\symfony_mailer\Email->valid() (line 594 of modules/contrib/symfony_mailer/src/Email.php).

Steps to reproduce

In hook_mailer_post_render(EmailInterface $email) I tried to add new params it throws an error. (setParams function is only valid in phases 0-0, called in 3)

$email->setSubject(), $email->setTextBody(''); $email->addTextHeader() are running successfully but while set the params it throws an error.

Feature request
Status

Active

Version

1.4

Component

Code

Created by

🇮🇳India hesnvabr

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

Comments & Activities

Production build 0.71.5 2024