Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add FluidEmail option to EXT:form EmailFinisher
EXT:form, the last system extension not using FluidEmail was extended for the corresponing integration. To allow extension authors to smoothly test and upgrade, the old StandaloneView functionality remains for now. As there is no change to the present behaviour the switch can be done without further actions required - if using the default templates currently. To migrate custom templates to FluidEmail, the template files must be changed from the {@Format}.html syntax to appropriate names with the correct format extension like `.html` and `.txt`. Furthermore the `templateName` option must be set with the new name. Two fields are introduced to configure FluidEmail in the finishers: - `useFluidEmail`: Enables sending the mails via FluidEmail - `title`: Used for the title section of the default template Resolves: #90728 Releases: master, 10.4 Change-Id: I378b733554ba734ad4eb6dff60e1da48ca03c972 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65901 Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Daniel Goerz <daniel.goerz@posteo.de> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by: Benni Mack <benni@typo3.org>
- Loading branch information
Showing
11 changed files
with
338 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
...on/Changelog/10.4.x/Feature-90728-AddFluidEmailOptionToEXTformEmailFinisher.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
================================================================= | ||
Feature: #90728 - Add FluidEmail option to EXT:form EmailFinisher | ||
================================================================= | ||
|
||
See :issue:`90728` | ||
|
||
Description | ||
=========== | ||
|
||
After the introduction of FluidEmail in v10 the option to send mails in a | ||
standardized way is now also added to the EmailFinisher of the system extension | ||
EXT:from. | ||
|
||
To use FluidEmail a new option `useFluidEmail` is added to both the EmailToReceiver | ||
and EmailToSender finisher. It defaults to :php:`FALSE` so extension authors are | ||
able to smoothly test and upgrade their forms. Furthermore a new option `title` | ||
is available which can be used to add an E-Mail title to the default FluidEmail | ||
template. This option is capable of rendering form element variables using the | ||
known bracket syntax and can be overwritten in the FlexForm configuration of the | ||
form plugin. | ||
|
||
To customize the templates beeing used following options can be set: | ||
|
||
* `templateName`: The template name (for both HTML and plaintext) without the extension | ||
* `templateRootPaths`: The paths to the templates | ||
* `partialRootPaths`: The paths to the partials | ||
* `layoutRootPaths`: The paths to the layouts | ||
|
||
For FluidEmail, the field `templatePathAndFilename` is not evaluated anymore. | ||
|
||
A finisher configuration could look like this: | ||
|
||
.. code-block:: yaml | ||
identifier: contact | ||
type: Form | ||
prototypeName: standard | ||
finishers: | ||
- | ||
identifier: EmailToSender | ||
options: | ||
subject: 'Your Message: {message}' | ||
title: 'Hello {name}, your confirmation' | ||
templateName: ContactForm | ||
templateRootPaths: | ||
100: 'EXT:sitepackage/Resources/Private/Templates/Email/' | ||
partialRootPaths: | ||
100: 'EXT:sitepackage/Resources/Private/Partials/Email/' | ||
addHtmlPart: true | ||
useFluidEmail: true | ||
Please note that the old template name syntax `{@format}.html` does not work for | ||
FluidEmail as each format needs a different template with the corresponing file | ||
extension. In the example above the following files must exist in the specified | ||
template path: | ||
|
||
* `ContactForm.html` | ||
* `ContactForm.txt` | ||
|
||
Impact | ||
====== | ||
|
||
It's now possible to use FluidEmail for sending mails in EXT:form. | ||
|
||
.. index:: Fluid, Frontend, ext:form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.