]> source.dussan.org Git - nextcloud-server.git/commitdiff
add a proper email address for lostpassword service - bugfix for oc-178
authorGeorg Ehrke <dev@georgswebsite.de>
Mon, 19 Mar 2012 08:09:18 +0000 (09:09 +0100)
committerGeorg Ehrke <dev@georgswebsite.de>
Mon, 19 Mar 2012 08:09:18 +0000 (09:09 +0100)
core/lostpassword/index.php

index 30caa2d23dafb71ec4cd3ee9a0029d06d33a5daf..da0428e3ced4738cd29fcb05cbde2ef13cd49ba2 100644 (file)
@@ -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 {