Changeset 24966 for trunk/include


Ignore:
Timestamp:
Oct 17, 2013, 9:38:06 PM (11 years ago)
Author:
rvelices
Message:

removed unused css rules, password recover form has a fieldset as all other forms, no exit if mail send fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_mail.inc.php

    r24952 r24966  
    540540  if (!empty($args['Bcc']))
    541541  {
    542     $headers.= 'Bcc: '.implode(',', $args['Bcc'])."\n";
    543 
    544542    foreach ($args['Bcc'] as $bcc)
    545543    {
     
    705703    }
    706704  }
    707  
    708   if(!$mail->send())
    709   {
    710     // TODO use standard error
    711     echo 'Message could not be sent.';
    712     echo 'Mailer Error: ' . $mail->ErrorInfo;
    713     exit;
    714   }
     705
     706  $ret = $mail->send();
     707  if(!$ret)
     708  {
     709    trigger_error( 'Mailer Error: ' . $mail->ErrorInfo, E_USER_WARNING);
     710  }
     711  return $ret;
    715712}
    716713
Note: See TracChangeset for help on using the changeset viewer.