]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-bonus.php
XML parser introduced, ext-surfbar rewritten, more EL code:
[mailer.git] / inc / pool / pool-bonus.php
index fcbab85a6de60add0b4f9ef7664b2733d26ea96b..b2a2020bd96c08c46fdd933ed0b245cd6d0d8dee 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -97,15 +97,15 @@ if ($GLOBALS['pool_cnt'] < getMaxSend()) {
                                        switch ($status) {
                                                case 'done': // Done!
                                                        // Prepare the mail
-                                                       $mailText = loadEmailTemplate('bonus-mail', $DATA, $userid);
+                                                       $mailText = loadEmailTemplate('member_bonus_pool_normal', $DATA, $userid);
 
                                                        // Send mail away
                                                        if (isset($DATA['html_msg'])) {
                                                                // Send HTML?
-                                                               sendEmail(getUserData('email'), $DATA['subject'], $mailText, $DATA['html_msg']);
+                                                               sendEmail(getUserData('userid'), $DATA['subject'], $mailText, $DATA['html_msg']);
                                                        } else {
                                                                // No HTML mail!
-                                                               sendEmail(getUserData('email'), $DATA['subject'], $mailText);
+                                                               sendEmail(getUserData('userid'), $DATA['subject'], $mailText);
                                                        }
 
                                                        // Count one up and remove entry from dummy array