Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Add contentObject functionality to form MailPostProcessor
and introduce replyToEmail If the form configuration is defined by TypoScript the following items for the MailPostProcessor in ext:form have now contentObject functionality: * subject * senderEmail * senderName * recipientEmail * ccEmail * replyToEmail (newly introduced, replyToEmailField as fallback) * priority * organization This is disabled in the form wizard for security concerns. Resolves: #68771 Releases: master Change-Id: I13913b806b86bcfbe35d760b50e193a066cbcc4c Reviewed-on: http://review.typo3.org/42290 Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de> Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de> Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de> Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de> Reviewed-by: Frans Saris <franssaris@gmail.com> Tested-by: Frans Saris <franssaris@gmail.com>
- Loading branch information
1 parent
b3908e9
commit 0f5ded1
Showing
2 changed files
with
103 additions
and
11 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...ddContentObjectFunctionalityToFormMailPostProcessorAndIntroduceReplyToEmail.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,41 @@ | ||
====================================================================================================== | ||
Feature: #68771 - Add contentObject functionality to form MailPostProcessor and introduce replyToEmail | ||
====================================================================================================== | ||
|
||
Description | ||
=========== | ||
|
||
If the form configuration is defined by TypoScript the following items for the MailPostProcessor | ||
in ext:form have now contentObject functionality: | ||
- subject | ||
- senderEmail | ||
- senderName | ||
- recipientEmail | ||
- ccEmail | ||
- replyToEmail (newly introduced, replyToEmailField as fallback) | ||
- priority | ||
- organization | ||
|
||
This feature is not available when building the form with the help of | ||
the wizard. The functionality can only be used be setting up the form | ||
via TypoScript. | ||
|
||
Usage | ||
===== | ||
|
||
In the mail postProcessor configuration one could do something like this | ||
(depending on the names of the form elements): | ||
|
||
.. code-block:: typoscript | ||
replyToEmail = TEXT | ||
replyToEmail { | ||
data = GP:tx_form_form|tx_form|e-mail | ||
htmlSpecialChars = 1 | ||
} | ||
subject = TEXT | ||
subject { | ||
data = GP:tx_form_form|tx_form|subject | ||
htmlSpecialChars = 1 | ||
noTrimWrap = |Mail from 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