Project

General

Profile

Actions

Task #105512

open

SystemEmail causes template parser to stop working

Added by Simon Schaufelberger 2 days ago. Updated 1 day ago.

Status:
Under Review
Priority:
Could have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2024-10-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Adding custom template variables doesn't work in SystemEmail because of the way how the inline CSS is parsed.

This can be reproduced like so:

finishers:
  -
    options:
      subject: 'Kontaktformular'
      senderAddress: 'no-reply@typo3.org'
      senderName: 'Sender Name'
      title: 'Kontaktformular'
      variables:
        foo: 'bar'
    identifier: EmailToReceiver

and in the SystemEmail.html template put the following line right after the body tag:

{foo}

Expected output: bar.

Actual output: {foo}.

See also this issue which is directly reported for Fluid: https://github.com/TYPO3/Fluid/issues/808 which is the same issue

Actions

Also available in: Atom PDF