Skip to content
Snippets Groups Projects
Commit dba4b5c6 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FIX #3314

parent 0ba6af81
No related branches found
No related tags found
No related merge requests found
...@@ -50,12 +50,16 @@ while ($state <> 'END') { ...@@ -50,12 +50,16 @@ while ($state <> 'END') {
); );
$GLOBALS['logger']->write("Sending e-mail to : " . $email->recipient, 'INFO'); $GLOBALS['logger']->write("Sending e-mail to : " . $email->recipient, 'INFO');
//--> Set the return path //--> Set the return path
$email->html_body = str_replace('#and#', '&', $email->html_body);
$email->html_body = str_replace("\''", "'", $email->html_body);
$email->html_body = str_replace("\'", "'", $email->html_body);
$email->html_body = str_replace("''", "'", $email->html_body);
$GLOBALS['mailer']->setReturnPath($email->sender); $GLOBALS['mailer']->setReturnPath($email->sender);
$GLOBALS['mailer']->setFrom($email->sender); $GLOBALS['mailer']->setFrom($email->sender);
$GLOBALS['logger']->write("Subject : " . $email->subject, 'INFO'); $GLOBALS['logger']->write("Subject : " . $email->subject, 'INFO');
$GLOBALS['mailer']->setSubject($email->subject); $GLOBALS['mailer']->setSubject($email->subject);
$GLOBALS['mailer']->setHtml($email->html_body); $GLOBALS['mailer']->setHtml($email->html_body);
$GLOBALS['mailer']->setHtml(str_replace('#and#', '&', $email->html_body));
$GLOBALS['mailer']->setTextCharset((string)$email->charset); $GLOBALS['mailer']->setTextCharset((string)$email->charset);
$GLOBALS['mailer']->setHtmlCharset((string)$email->charset); $GLOBALS['mailer']->setHtmlCharset((string)$email->charset);
$GLOBALS['mailer']->setHeadCharset((string)$email->charset); $GLOBALS['mailer']->setHeadCharset((string)$email->charset);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment