Commit 92ba654f authored by Carsten  Rose's avatar Carsten Rose
Browse files

Replaces '<br>' by '<br>\r\n' - this is just a try.

parent 12452a4a
Pipeline #5368 passed with stages
in 3 minutes and 36 seconds
...@@ -3,13 +3,12 @@ ...@@ -3,13 +3,12 @@
namespace IMATHUZH\Qfq\Core\Report; namespace IMATHUZH\Qfq\Core\Report;
use IMATHUZH\Qfq\Core\Database\Database; use IMATHUZH\Qfq\Core\Database\Database;
use IMATHUZH\Qfq\Core\Helper\HelperFile;
use IMATHUZH\Qfq\Core\Helper\OnArray; use IMATHUZH\Qfq\Core\Helper\OnArray;
use IMATHUZH\Qfq\Core\Helper\Path; use IMATHUZH\Qfq\Core\Helper\Path;
use IMATHUZH\Qfq\Core\Store\Store;
use IMATHUZH\Qfq\Core\Helper\Sanitize; use IMATHUZH\Qfq\Core\Helper\Sanitize;
use IMATHUZH\Qfq\Core\Helper\HelperFile;
use IMATHUZH\Qfq\Core\Helper\Support; use IMATHUZH\Qfq\Core\Helper\Support;
use IMATHUZH\Qfq\Core\Store\Store;
const SENDMAIL_HTML_TOKEN = '<html>'; const SENDMAIL_HTML_TOKEN = '<html>';
...@@ -156,6 +155,7 @@ class SendMail { ...@@ -156,6 +155,7 @@ class SendMail {
if (isset($mailConfig[SENDMAIL_TOKEN_BODY_MODE]) && $mailConfig[SENDMAIL_TOKEN_BODY_MODE] === SENDMAIL_TOKEN_BODY_MODE_HTML) { if (isset($mailConfig[SENDMAIL_TOKEN_BODY_MODE]) && $mailConfig[SENDMAIL_TOKEN_BODY_MODE] === SENDMAIL_TOKEN_BODY_MODE_HTML) {
$mailConfig[SENDMAIL_TOKEN_BODY] = Support::wrapTag(SENDMAIL_HTML_TOKEN, $mailConfig[SENDMAIL_TOKEN_BODY]); $mailConfig[SENDMAIL_TOKEN_BODY] = Support::wrapTag(SENDMAIL_HTML_TOKEN, $mailConfig[SENDMAIL_TOKEN_BODY]);
$mailConfig[SENDMAIL_TOKEN_BODY] = str_ireplace("<br>", "<br>\r\n", $mailConfig[SENDMAIL_TOKEN_BODY]);
} }
foreach ($mailConfig as $key => $value) { foreach ($mailConfig as $key => $value) {
...@@ -462,7 +462,7 @@ class SendMail { ...@@ -462,7 +462,7 @@ class SendMail {
$param = explode(PARAM_DELIMITER, $data); $param = explode(PARAM_DELIMITER, $data);
// Iterate over all parameter: use token as key. Collect corresponding attachments arguments in separate array elements. // Iterate over all parameter: use token as key. Collect corresponding attachments arguments in separate array elements.
foreach ($param AS $line) { foreach ($param as $line) {
if (empty($line)) { if (empty($line)) {
continue; continue;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment