summaryrefslogtreecommitdiffstats
path: root/lib/private/Mail
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-04-18 21:44:37 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-04-18 21:44:37 +0200
commitbae64e810e49fa43a8821b6095b1cf713467bdae (patch)
treef5dab2f48d5ad1feda144fdd084a18743f985819 /lib/private/Mail
parentb072d2c49d6f61c2b55abf12e04bdf2166dbd4f4 (diff)
downloadnextcloud-server-bae64e810e49fa43a8821b6095b1cf713467bdae.tar.gz
nextcloud-server-bae64e810e49fa43a8821b6095b1cf713467bdae.zip
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>
Diffstat (limited to 'lib/private/Mail')
-rw-r--r--lib/private/Mail/Mailer.php2
1 files changed, 1 insertions, 1 deletions
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 = [];