diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-12 14:20:03 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-03-12 14:20:03 +0100 |
commit | 76a706738b0039a085476a56bffda01a3f3fc6ed (patch) | |
tree | d63d38c1ef1381edea4aeffa5bf50dca766e1bda /lib/private/Mail | |
parent | 24d0fb9fcd8b190b6c16c4608c95785036b1eb31 (diff) | |
download | nextcloud-server-76a706738b0039a085476a56bffda01a3f3fc6ed.tar.gz nextcloud-server-76a706738b0039a085476a56bffda01a3f3fc6ed.zip |
Do not use the instance name as user part of from mail addresses
This will cause issues since the theming name can contain characters
that are not allowed in the local part of the mail address (like spaces)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Mail')
-rw-r--r-- | lib/private/Mail/Mailer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php index 7af3d16f75c..df5f2687daa 100644 --- a/lib/private/Mail/Mailer.php +++ b/lib/private/Mail/Mailer.php @@ -169,7 +169,7 @@ class Mailer implements IMailer { $debugMode = $this->config->getSystemValue('mail_smtpdebug', false); if (empty($message->getFrom())) { - $message->setFrom([\OCP\Util::getDefaultEmailAddress($this->defaults->getName()) => $this->defaults->getName()]); + $message->setFrom([\OCP\Util::getDefaultEmailAddress('no-reply') => $this->defaults->getName()]); } $failedRecipients = []; |