From bae64e810e49fa43a8821b6095b1cf713467bdae Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 18 Apr 2017 21:44:37 +0200 Subject: 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 --- lib/private/Mail/Mailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Mail/Mailer.php') diff --git a/lib/private/Mail/Mailer.php b/lib/private/Mail/Mailer.php index 852806b2e43..80988d85701 100644 --- a/lib/private/Mail/Mailer.php +++ b/lib/private/Mail/Mailer.php @@ -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 = []; -- cgit v1.2.3