Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Allow setting a default replyTo-email-address
If no other email-address is set as reply-to use this address as default. This is similar to the existing defaultMailFromAddress. Change-Id: Iabdf282203c1989036867a6c97b9cbe329e61f60 Resolves: #78332 Releases: master Reviewed-on: https://review.typo3.org/50263 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com> Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org>
- Loading branch information
Showing
6 changed files
with
122 additions
and
8 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
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
36 changes: 36 additions & 0 deletions
36
...eature-78332-AllowSettingADefaultReplyTo-email-addressForNotification-mails.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,36 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
====================================================================================== | ||
Feature: #78332 - Allow setting a default replyTo-email-address for notification-mails | ||
====================================================================================== | ||
|
||
See :issue:`78332` | ||
|
||
Description | ||
=========== | ||
|
||
Two new LocalConfiguration settings are introduced: | ||
|
||
.. code-block:: php | ||
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailReplyToAddress'] | ||
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailReplyToName'] | ||
Also a new function to build a mail address for SwiftMailer from these settings is introduced: | ||
|
||
.. code-block:: php | ||
MailUtility::getSystemReplyTo() | ||
If no default reply-to address is set this function will return an empty array. | ||
|
||
This function is used in :php:`ContentObjectRenderer::sendNotifyEmail()` to set a ReplyTo address in case no address was supplied in the function parameters. | ||
In other places where notifications are sent for e.g. (failed) login attempts, reports and where the notification uses the system from address this function is also used. | ||
|
||
|
||
Impact | ||
====== | ||
|
||
It's now possible to set a reply-to address for notification mails from TYPO3. Extensions can also use this system reply-to address by calling :php:`MailUtility::getSystemReplyTo()`. | ||
|
||
.. index:: LocalConfiguration, NotScanned |
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