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>
This commit is contained in:
parent
d8a903b1e9
commit
5b51413a7f
|
@ -164,7 +164,7 @@ class Mailer implements IMailer {
|
||||||
$debugMode = $this->config->getSystemValue('mail_smtpdebug', false);
|
$debugMode = $this->config->getSystemValue('mail_smtpdebug', false);
|
||||||
|
|
||||||
if (empty($message->getFrom())) {
|
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 = [];
|
$failedRecipients = [];
|
||||||
|
|
Loading…
Reference in New Issue