From 5abcfccff06f64ba3e7d273c0e5a3b6ec56d047c Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 17 Oct 2013 19:38:06 +0000 Subject: removed unused css rules, password recover form has a fieldset as all other forms, no exit if mail send fails git-svn-id: http://piwigo.org/svn/trunk@24966 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_mail.inc.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'include/functions_mail.inc.php') diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 265ed13b8..51858cf33 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -539,8 +539,6 @@ function pwg_mail($to, $args = array()) if (!empty($args['Bcc'])) { - $headers.= 'Bcc: '.implode(',', $args['Bcc'])."\n"; - foreach ($args['Bcc'] as $bcc) { $mail->addBCC($bcc); @@ -704,14 +702,13 @@ function pwg_mail($to, $args = array()) $mail->Password = $conf_mail['smtp_password']; } } - - if(!$mail->send()) + + $ret = $mail->send(); + if(!$ret) { - // TODO use standard error - echo 'Message could not be sent.'; - echo 'Mailer Error: ' . $mail->ErrorInfo; - exit; + trigger_error( 'Mailer Error: ' . $mail->ErrorInfo, E_USER_WARNING); } + return $ret; } /* DEPRECATED -- cgit v1.2.3