diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-03-13 10:17:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:17:12 +0100 |
commit | a54c4b60a809fb271977b0afc57d43e9de20082a (patch) | |
tree | 9ed750dc06712ade861a8032efe05c81f6774c3a /lib | |
parent | 3c2e38a0c93f6a5885ad04f7a64e6ab1e3579ec3 (diff) | |
parent | 76a706738b0039a085476a56bffda01a3f3fc6ed (diff) | |
download | nextcloud-server-a54c4b60a809fb271977b0afc57d43e9de20082a.tar.gz nextcloud-server-a54c4b60a809fb271977b0afc57d43e9de20082a.zip |
Merge pull request #19910 from nextcloud/bugfix/noid/invalid-from-mail
Do not use the instance name as user part of from mail addresses
Diffstat (limited to 'lib')
-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 = []; |