summaryrefslogtreecommitdiffstats
path: root/core/lostpassword
diff options
context:
space:
mode:
authorRandolph Carter <RandolphCarter@fantasymail.de>2012-12-19 01:09:14 +0100
committerRandolph Carter <RandolphCarter@fantasymail.de>2012-12-19 01:09:14 +0100
commitd2828bab0792ce945f658e3fa66a62341c582d5e (patch)
treed12467e1e89cb000a17edd87fb369d476472ace8 /core/lostpassword
parent3adfb91ad895dc9371834c0e42cfd3605fdd7054 (diff)
downloadnextcloud-server-d2828bab0792ce945f658e3fa66a62341c582d5e.tar.gz
nextcloud-server-d2828bab0792ce945f658e3fa66a62341c582d5e.zip
fixes default email sender address
Diffstat (limited to 'core/lostpassword')
-rw-r--r--core/lostpassword/controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lostpassword/controller.php b/core/lostpassword/controller.php
index 523520dc754..e64b16d3b83 100644
--- a/core/lostpassword/controller.php
+++ b/core/lostpassword/controller.php
@@ -43,7 +43,7 @@ class OC_Core_LostPassword_Controller {
$tmpl->assign('link', $link, false);
$msg = $tmpl->fetchPage();
$l = OC_L10N::get('core');
- $from = 'lostpassword-noreply@' . OCP\Util::getServerHost();
+ $from = OCP\Util::getDefaultEmailAddress('lostpassword-noreply');
OC_Mail::send($email, $_POST['user'], $l->t('ownCloud password reset'), $msg, $from, 'ownCloud');
echo('Mailsent');