X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_newsletter.php;h=bbb7c17a51dc1ec24743e68c5c2b437f02a4cc5b;hb=a16ae225264a183dc4adf24c2d931df231d2ffc7;hp=d964131028492fafa03e58699543b1470679f7d4;hpb=db0c6702086eea2c44d0aae1702dc2e77a0afc4e;p=mailer.git diff --git a/inc/modules/admin/what-send_newsletter.php b/inc/modules/admin/what-send_newsletter.php index d964131028..bbb7c17a51 100644 --- a/inc/modules/admin/what-send_newsletter.php +++ b/inc/modules/admin/what-send_newsletter.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * @@ -45,7 +45,7 @@ addYouAreHereLink('admin', __FILE__); if (isFormSent()) { $result = SQL_QUERY("SELECT - `userid`, `email` + `userid`,`email` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE @@ -59,22 +59,22 @@ ORDER BY $template = 'newsletter'; // Check for extension and sending-mode - if (!isExtensionActive('html_mail', true) && (postRequestParameter('mode') == 'html')) { + if (!isExtensionActive('html_mail', true) && (postRequestElement('mode') == 'html')) { // Set mode to text mode - postRequestParameter('mode') == 'text'; - } elseif (postRequestParameter('mode') == 'html') { + postRequestElement('mode') == 'text'; + } elseif (postRequestElement('mode') == 'html') { // Set HTML templates $template = 'newsletter_html'; } // Compile message - setPostRequestParameter('text', preCompileCode(postRequestParameter('text'))); + setPostRequestElement('text', preCompileCode(postRequestElement('text'))); // Load template - $message = loadEmailTemplate($template, array('text' => postRequestParameter('text')), $content['userid']); + $message = loadEmailTemplate($template, array('text' => postRequestElement('text')), $content['userid']); // ... and send it away! - sendNewsletter($content['email'], postRequestParameter('subject'), $message, postRequestParameter('mode')); + sendNewsletter($content['email'], postRequestElement('subject'), $message, postRequestElement('mode')); } // END - while // Output message