mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
Add instance name to default sender
Otherwise your mail program shows "foo@mail.com" instead of "Nextcloud" or whatever your instance name is. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user