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:
commit
a54c4b60a8
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue