]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not use the instance name as user part of from mail addresses 19926/head
authorJulius Härtl <jus@bitgrid.net>
Thu, 12 Mar 2020 13:20:03 +0000 (14:20 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 13 Mar 2020 10:49:07 +0000 (10:49 +0000)
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>
lib/private/Mail/Mailer.php

index d103e1380c53d767510e99c024ad046e49bf79f9..8f442365585ffdd56c7d417ec50f7b1693a0e3b3 100644 (file)
@@ -164,7 +164,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 = [];