From 03120959e9829eb1e33a2d1035b976438578fed3 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 19 Mar 2012 09:09:18 +0100 Subject: [PATCH] add a proper email address for lostpassword service - bugfix for oc-178 --- core/lostpassword/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php index 30caa2d23d..da0428e3ce 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 {