diff options
author | Frank Karlitschek <karlitschek@kde.org> | 2012-04-20 20:49:35 +0200 |
---|---|---|
committer | Frank Karlitschek <karlitschek@kde.org> | 2012-04-20 20:49:35 +0200 |
commit | 2fbc92bd4bfd69ef7f9c23a620f28daaef83086f (patch) | |
tree | 62557b132727308a1af4424118f5a8625b659961 /core/lostpassword | |
parent | 3aeea0c196a70e08a5cd04db2dee1e4bdd367412 (diff) | |
download | nextcloud-server-2fbc92bd4bfd69ef7f9c23a620f28daaef83086f.tar.gz nextcloud-server-2fbc92bd4bfd69ef7f9c23a620f28daaef83086f.zip |
new OC_Mail class to handle all mail sending. The benefit is that is way mor flexible than the standard mail command. can be configured to use a remote smtp relay for example. also port the lostpassword code
Diffstat (limited to 'core/lostpassword')
-rw-r--r-- | core/lostpassword/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php index 89bb6cfa794..b6cdd601d66 100644 --- a/core/lostpassword/index.php +++ b/core/lostpassword/index.php @@ -22,7 +22,10 @@ if (isset($_POST['user'])) { $msg = $tmpl->fetchPage(); $l = OC_L10N::get('core'); $from = 'lostpassword-noreply@' . $_SERVER['HTTP_HOST']; - mail($email, $l->t('Owncloud password reset'), $msg, 'From:' . $from); + $r=mail($email, $l->t('Owncloud password reset'), $msg, 'From:' . $from); +//if($r==false) echo('error'); else echo('works!!!!!!!'); + OC_MAIL::send($email,$_POST['user'],$l->t('Owncloud password reset'),$msg,$from,'ownCloud'); + } OC_Template::printGuestPage('core/lostpassword', 'lostpassword', array('error' => false, 'requested' => true)); } else { |