mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user