define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "427");
+define('CURR_SVN_REVISION', "428");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// Automatically insert URLs into newsletter
if ((EXT_IS_ACTIVE("html")) && ($MODE == "html")) {
// Send HTML mail
- SEND_EMAIL($TO, $SUBJECT, array('text' => HTML_INSERT_URLS($MSG)), "Y");
+ SEND_EMAIL($TO, $SUBJECT, HTML_INSERT_URLS($MSG), "Y");
} else {
// Send normal mail
- SEND_EMAIL($TO, $SUBJECT, array('text' => NL_INSERT_URLS($MSG)), "N");
+ SEND_EMAIL($TO, $SUBJECT, NL_INSERT_URLS($MSG), "N");
}
} else {
// Regular send-out
if ((EXT_IS_ACTIVE("html")) && ($MODE == "html")) {
- SEND_EMAIL($TO, $SUBJECT, array('text' => $MSG), "Y");
+ SEND_EMAIL($TO, $SUBJECT, $MSG, "Y");
} else {
- SEND_EMAIL($TO, $SUBJECT, array('text' => $MSG), "N");
+ SEND_EMAIL($TO, $SUBJECT, $MSG, "N");
}
}
}
$_POST['text'] = COMPILE_CODE($_POST['text']);
// Load template
- $msg = LOAD_EMAIL_TEMPLATE($template, $_POST['text'], $id);
+ $msg = LOAD_EMAIL_TEMPLATE($template, array('text' => $_POST['text']), $id);
// ... and send it away!
SEND_NEWSLETTER($email, $_POST['subject'], $msg, $_POST['mode']);