Skip to content
Snippets Groups Projects
Commit 3c3a2b9b authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Remove old internal mail call for password reset, fixes bug oc-934

parent 44880ab3
Branches
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ if (isset($_POST['user'])) { ...@@ -23,7 +23,6 @@ if (isset($_POST['user'])) {
$msg = $tmpl->fetchPage(); $msg = $tmpl->fetchPage();
$l = OC_L10N::get('core'); $l = OC_L10N::get('core');
$from = 'lostpassword-noreply@' . OCP\Util::getServerHost(); $from = 'lostpassword-noreply@' . OCP\Util::getServerHost();
$r=mail($email, $l->t('Owncloud password reset'), $msg, 'From:' . $from);
OC_MAIL::send($email,$_POST['user'],$l->t('ownCloud password reset'),$msg,$from,'ownCloud'); OC_MAIL::send($email,$_POST['user'],$l->t('ownCloud password reset'),$msg,$from,'ownCloud');
echo('sent'); echo('sent');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment