X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_newsletter.php;h=6db44f6c4373fbbbe794b26a4846e2c4781f7695;hb=74ea26a36ff202cfdca545025a17c9faf4d68efb;hp=95e28e8d60980d90e4262a8a7030ecd7e2053674;hpb=bc72f913ef9ef26f4103d3deddb4d8be5337a1e5;p=mailer.git diff --git a/inc/modules/admin/what-send_newsletter.php b/inc/modules/admin/what-send_newsletter.php index 95e28e8d60..6db44f6c43 100644 --- a/inc/modules/admin/what-send_newsletter.php +++ b/inc/modules/admin/what-send_newsletter.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -60,22 +61,22 @@ ORDER BY $template = 'newsletter'; // Check for extension and sending-mode - if (!isExtensionActive('html_mail', true) && (postRequestElement('mode') == 'html')) { + if (!isExtensionActive('html_mail', true) && (postRequestParameter('mode') == 'html')) { // Set mode to text mode - postRequestElement('mode') == 'text'; - } elseif (postRequestElement('mode') == 'html') { + postRequestParameter('mode') == 'text'; + } elseif (postRequestParameter('mode') == 'html') { // Set HTML templates $template = 'newsletter_html'; } // Compile message - setPostRequestElement('text', compileCode(postRequestElement('text'))); + setPostRequestParameter('text', compileCode(postRequestParameter('text'))); // Load template - $message = loadEmailTemplate($template, array('text' => postRequestElement('text')), $content['userid']); + $message = loadEmailTemplate($template, array('text' => postRequestParameter('text')), $content['userid']); // ... and send it away! - sendNewsletter($content['email'], postRequestElement('subject'), $message, postRequestElement('mode')); + sendNewsletter($content['email'], postRequestParameter('subject'), $message, postRequestParameter('mode')); } // Free memory