* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009, 2010 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
FROM
`{?_MYSQL_PREFIX?}_user_data`
WHERE
`status`='CONFIRMED' AND `nl_receive`='Y'
ORDER BY
`userid` ASC", __FILE__, __LINE__);
FROM
`{?_MYSQL_PREFIX?}_user_data`
WHERE
`status`='CONFIRMED' AND `nl_receive`='Y'
ORDER BY
`userid` ASC", __FILE__, __LINE__);
// Members are available so we can send out the newsletter!
while ($content = SQL_FETCHARRAY($result)) {
// Construct mail...
$template = 'newsletter';
// Check for extension and sending-mode
// Members are available so we can send out the newsletter!
while ($content = SQL_FETCHARRAY($result)) {
// Construct mail...
$template = 'newsletter';
// Check for extension and sending-mode
- $message = loadEmailTemplate($template, array('text' => postRequestParameter('text')), $content['userid']);
+ $message = loadEmailTemplate($template, array('text' => postRequestElement('text')), $content['userid']);
- sendNewsletter($content['email'], postRequestParameter('subject'), $message, postRequestParameter('mode'));
- }
-
- // Free memory
- SQL_FREERESULT($result);
+ sendNewsletter($content['email'], postRequestElement('subject'), $message, postRequestElement('mode'));
+ } // END - while
} else {
// Copy data into constants for the template and load it
$content['datestamp'] = generateDateTime(time(), 3);
} else {
// Copy data into constants for the template and load it
$content['datestamp'] = generateDateTime(time(), 3);
if (isExtensionActive('html_mail')) {
// Load template with HTML mode
loadTemplate('admin_newsletter', false, $content);
if (isExtensionActive('html_mail')) {
// Load template with HTML mode
loadTemplate('admin_newsletter', false, $content);