Merge branch '1.10.x' of github.com:chamilo/chamilo-lms into 1.10.x

1.10.x
jmontoyaa 9 years ago
commit e4c8809dfc
  1. 9
      main/inc/lib/api.lib.php

@ -8046,6 +8046,15 @@ function api_mail_html(
// Send the mail message.
if (!$mail->Send()) {
error_log('ERROR: mail not sent to '.$recipient_name.' ('.$recipient_email.') because of '.$mail->ErrorInfo.'<br />');
if ($mail->SMTPDebug) {
error_log(
"Connection details :: " .
"Protocol: " . $mail->Mailer . ' :: ' .
"Host/Port: " . $mail->Host . ':' . $mail->Port . ' :: ' .
"Authent/Open: " . ($mail->SMTPAuth?'Authent':'Open') . ' :: ' .
($mail->SMTPAuth?" User/Pass: " . $mail->Username . ':' . $mail->Password:'')
);
}
return 0;
}

Loading…
Cancel
Save