[BUGFIX] Always use system getFrom() when sending emails 85/51885/3
authorBenni Mack <benni@typo3.org>
Tue, 28 Feb 2017 06:40:09 +0000 (07:40 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 28 Feb 2017 14:30:05 +0000 (15:30 +0100)
commit98d6c9d3fbf09f70dd8a7f2bbbc00f704d8339cc
tree5c0c5279d4fba920d151787e2b664ae3d04abc79
parentbe487dd9af8c2990a0a5d1ba56bd5a77fee28298
[BUGFIX] Always use system getFrom() when sending emails

When instantiating MailMessage() and no valid sender is
given, a fallback is used in different places of TYPO3. To ensure
that all mails sent out (e.g. when instantiated via extensions)
have a proper From() header, the default fallback is set
just before sending the emails.

Resolves: #80055
Releases: master
Change-Id: I6b740b2dcf5a84437fac2e9bf60aac3321e91377
Reviewed-on: https://review.typo3.org/51885
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Classes/Mail/MailMessage.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/reports/Classes/Task/SystemStatusUpdateTask.php
typo3/sysext/version/Classes/Hook/DataHandlerHook.php