]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/newsletter_functions.php
New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / libs / newsletter_functions.php
index 0f0e276de00f94475cf3c3c6b487af50451981cf..40a38a8311c14e2504db88b639b289de3d5035df 100644 (file)
@@ -58,7 +58,7 @@ function NL_CHECK_TAGS ($html) {
        $test = stripslashes($html);
        while (ereg("<", $test) && ereg(">", $test)) {
                $check = strtolower(substr($test, strpos($test, "<") + 1, strpos($test, ">") - strpos($test, "<") - 1));
-               $check = str_replace("/", '', $check);
+               $check = str_replace('/', '', $check);
                if (!in_array($check, $GLOBALS['html_tags'])) {
                        // Invalid tag found!
                        return "";
@@ -159,17 +159,17 @@ function SEND_NEWSLETTER ($to, $subject, $message, $mode) {
                // Automatically insert URLs into newsletter
                if ((EXT_IS_ACTIVE('html_mail')) && ($mode == 'html')) {
                        // Send HTML mail
-                       SEND_EMAIL($to, $subject, HTML_INSERT_URLS($message), "Y");
+                       sendEmail($to, $subject, HTML_INSERT_URLS($message), 'Y');
                } else {
                        // Send normal mail
-                       SEND_EMAIL($to, $subject, NL_INSERT_URLS($message), "N");
+                       sendEmail($to, $subject, NL_INSERT_URLS($message), 'N');
                }
        } else {
                // Regular send-out
                if ((EXT_IS_ACTIVE('html_mail')) && ($mode == 'html')) {
-                       SEND_EMAIL($to, $subject, $message, "Y");
+                       sendEmail($to, $subject, $message, 'Y');
                } else {
-                       SEND_EMAIL($to, $subject, $message, "N");
+                       sendEmail($to, $subject, $message, 'N');
                }
        }
 }