<?php
/************************************************************************
- * MXChange v0.2.1 Start: 04/25/2004 *
- * ================ Last change: 04/29/2004 *
+ * Mailer v0.2.1-FINAL Start: 04/25/2004 *
+ * =================== Last change: 04/29/2004 *
* *
* -------------------------------------------------------------------- *
* File : html_mail_functions.php *
$check = str_replace('/', '', $check);
if (!in_array($check, $GLOBALS['html_tags'])) {
// Invalid tag found!
- return "";
+ return '';
}
$test = substr($test, strpos($test, '>') + 1);
}
} // 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 != '@')) {
$text = ''; $PARTS[] = $test;
foreach ($PARTS as $part) {
$text .= $part;
- }
+ } // END - foreach
// Replace new-lines agains <br />-s and finally compile possible own HTML tags out...
return compileCode(str_replace("\n", "<br />\n", $text));
// Send mail away as HTML
$FROM = "Content-Type: text/html; charset=UTF-8\n" . $FROM;
sendEmail($to, $subject, $message, 'N', $FROM);
- }
+ } // END - if
}
//