summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-03-13 10:17:12 +0100
committerGitHub <noreply@github.com>2020-03-13 10:17:12 +0100
commita54c4b60a809fb271977b0afc57d43e9de20082a (patch)
tree9ed750dc06712ade861a8032efe05c81f6774c3a /lib
parent3c2e38a0c93f6a5885ad04f7a64e6ab1e3579ec3 (diff)
parent76a706738b0039a085476a56bffda01a3f3fc6ed (diff)
downloadnextcloud-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.php2
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 = [];