summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-03-12 14:20:03 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-03-13 10:48:51 +0000
commit856b7a210e3abd894f0b0beb12a5a4cd876a4448 (patch)
tree91388b4f23fd6ceea07775af57ca6ae6a2a81974
parentcbdff5c816c4087d60036bbdfd5a3f6d4c19b670 (diff)
downloadnextcloud-server-856b7a210e3abd894f0b0beb12a5a4cd876a4448.tar.gz
nextcloud-server-856b7a210e3abd894f0b0beb12a5a4cd876a4448.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>
-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 = [];