Merge pull request #19910 from nextcloud/bugfix/noid/invalid-from-mail

Do not use the instance name as user part of from mail addresses
This commit is contained in:
Roeland Jago Douma 2020-03-13 10:17:12 +01:00 committed by GitHub
commit a54c4b60a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 = [];