mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03: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:
parent
bb083e63d0
commit
5abcfccff0
3 changed files with 11 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue