Issue Bug Closed

#99944FluidEmail should render the parts only once

Markus Klein 02/13/23, 20:04 updated 07/09/24, 12:46

Description

FuildEmail renders its content from within multiple getters.
If the content of the e-mail is changed on purpose from outside, the final call to `ensureValidity` when the mail is sent, throws all the e-mail’s content away.

Use-case: e-mail content post-processing from within hooks, like PasswordRecoveryService.
Example: https://gitlab.com/reelworx/typo3/t3-mailservice-demo-project/-/blob/main/packages/demo/Classes/MjmlConnector.php#L57

Solution: generate content only once.

Reviews 2