Project

General

Profile

Actions

Bug #99944

closed

FluidEmail should render the parts only once

Added by Markus Klein almost 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Mailer API
Target version:
-
Start date:
2023-02-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF