Added send mail function

This commit is contained in:
Arturo Gonzalez 2017-04-19 17:29:22 +02:00
parent 48f7fa50dd
commit 4a4f52c459
2 changed files with 2 additions and 1 deletions

View File

@ -17,4 +17,5 @@ $email_smtpServer = '127.0.0.1';
$email_smtpPort = 25; $email_smtpPort = 25;
$email_username = ''; $email_username = '';
$email_password = ''; $email_password = '';
?> ?>

View File

@ -2752,7 +2752,7 @@ function send_email_to_user ($to, $body, $subject) {
$message->setBody($body, 'text/html'); $message->setBody($body, 'text/html');
ini_restore ('sendmail_from'); ini_restore ('sendmail_from');
html_debug("AAAA", true);
$result = $mailer->send($message); $result = $mailer->send($message);
} }
catch (Exception $e) { catch (Exception $e) {