Merge pull request #4380 from nextcloud/show-instance-name-in-from
Add instance name to default sender
This commit is contained in:
commit
47fe5e8f41
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class Mailer implements IMailer {
|
|||
$debugMode = $this->config->getSystemValue('mail_smtpdebug', false);
|
||||
|
||||
if (sizeof($message->getFrom()) === 0) {
|
||||
$message->setFrom([\OCP\Util::getDefaultEmailAddress($this->defaults->getName())]);
|
||||
$message->setFrom([\OCP\Util::getDefaultEmailAddress($this->defaults->getName()) => $this->defaults->getName()]);
|
||||
}
|
||||
|
||||
$failedRecipients = [];
|
||||
|
|
Loading…
Reference in a new issue