summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-03-19 09:09:18 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-03-19 09:09:18 +0100
commit03120959e9829eb1e33a2d1035b976438578fed3 (patch)
tree0097873eca672f9a38cb178504a60f15ca2ba2f7
parentde09883d860d6507a2d287d0b8bae394963c4b94 (diff)
downloadnextcloud-server-03120959e9829eb1e33a2d1035b976438578fed3.tar.gz
nextcloud-server-03120959e9829eb1e33a2d1035b976438578fed3.zip
add a proper email address for lostpassword service - bugfix for oc-178
-rw-r--r--core/lostpassword/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php
index 30caa2d23da..da0428e3ced 100644
--- a/core/lostpassword/index.php
+++ b/core/lostpassword/index.php
@@ -21,7 +21,8 @@ if (isset($_POST['user'])) {
$tmpl->assign('link', $link);
$msg = $tmpl->fetchPage();
$l = new OC_L10N('core');
- mail($email, $l->t('Owncloud password reset'), $msg);
+ $from = 'lostpassword-noreply@' . $_SERVER['HTTP_HOST'];
+ mail($email, $l->t('Owncloud password reset'), $msg, 'From:' . $from);
}
OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => false, 'requested' => true));
} else {