X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fhtml_mail_functions.php;h=29f49585d1470d3b9f2d1b2084f604e4356d9d60;hb=b1cf96c4a5a63a1d334119a0681e5fbf68edf527;hp=f72b7d595579a5248d9aef1ca2e9daedb2226bf8;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git
diff --git a/inc/libs/html_mail_functions.php b/inc/libs/html_mail_functions.php
index f72b7d5955..29f49585d1 100644
--- a/inc/libs/html_mail_functions.php
+++ b/inc/libs/html_mail_functions.php
@@ -1,6 +1,6 @@
') + 1);
}
@@ -118,7 +118,7 @@ function insertUrlsIntoHtml ($text) {
} // END - if
// And now go forward...
- $idx = 0;
+ $idx = '0';
while ($idx < strlen($test)) {
$check = substr($test, $idx, 1);
if ((!in_array($check, $GLOBALS['valid_email_chars'])) && ($check != '@')) {
@@ -144,7 +144,7 @@ function insertUrlsIntoHtml ($text) {
$text = ''; $PARTS[] = $test;
foreach ($PARTS as $part) {
$text .= $part;
- }
+ } // END - foreach
// Replace new-lines agains
-s and finally compile possible own HTML tags out...
return compileCode(str_replace("\n", "
\n", $text));
@@ -156,7 +156,7 @@ function sendHtmlEmail($to, $subject, $message, $FROM) {
// Send mail away as HTML
$FROM = "Content-Type: text/html; charset=UTF-8\n" . $FROM;
sendEmail($to, $subject, $message, 'N', $FROM);
- }
+ } // END - if
}
//