From: Roland Häder Date: Fri, 30 Oct 2009 10:17:32 +0000 (+0000) Subject: Fixes for email delivery X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=895103456fc429edbdf11c5a962f3a051ff183af;p=mailer.git Fixes for email delivery --- diff --git a/inc/functions.php b/inc/functions.php index fce1f0ab6e..92f96a7121 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -600,7 +600,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = ' // Free result SQL_FREERESULT($result_email); } - } elseif ($toEmail == 0) { + } elseif ($toEmail == '0') { // Is the webmaster! $toEmail = getConfig('WEBMASTER'); } @@ -637,7 +637,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = ' if (isDebugModeEnabled()) { // In debug mode we want to display the mail instead of sending it away so we can debug this part outputHtml('
-Headers : ' . htmlentities(trim($mailHeader)) . '
+Headers : ' . str_replace('<', '<', str_replace('>', '>', htmlentities(trim($mailHeader)))) . '
 To      : ' . $toEmail . '
 Subject : ' . $subject . '
 Message : ' . $message . '
diff --git a/templates/de/emails/header.tpl b/templates/de/emails/header.tpl
index d97036d5a4..3cb2a6d144 100644
--- a/templates/de/emails/header.tpl
+++ b/templates/de/emails/header.tpl
@@ -1,4 +1,4 @@
 X-Mailer: {?TITLE?} {?FULL_VERSION?}
 Errors-To: {?WEBMASTER?}
 X-Loop: {?WEBMASTER?}
-From: {?MAIN_TITLE?} <{?WEBMASTER?}>
+From: "{?MAIN_TITLE?} <{?WEBMASTER?}>"