]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-user.php
A lot email templates renamed, SQL fixed:
[mailer.git] / inc / pool / pool-user.php
index eec29f9ca73224355451fc9a94a0b4759edcda1f..910a96bb8cdbc8d179baffe0c6266c40ff5c1816 100644 (file)
@@ -143,7 +143,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                                $DATA['points'] = getPaymentPoints($DATA['payment_id'], 'payment');
 
                                                                // Load message template
-                                                               $mailText = loadEmailTemplate('normal-mail', $DATA, bigintval($userid));
+                                                               $mailText = loadEmailTemplate('member_user_pool_normal', $DATA, bigintval($userid));
 
                                                                // Send mail away
                                                                sendEmail(getUserData('email'), $DATA['subject'], $mailText, $isHtml);
@@ -195,12 +195,12 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                );
 
                                                // Yes we do, so we notify admin and sender about fully sent mail!
-                                               sendAdminNotification('{--ADMIN_SEND_DONE_SUBJECT--}', 'done-admin', $content, $userid);
+                                               sendAdminNotification('{--ADMIN_SEND_DONE_SUBJECT--}', 'admin_user_pool_done', $content, $userid);
 
                                                // Get sender's data
                                                if (fetchUserData($DATA['sender_userid'])) {
                                                        // Load email template
-                                                       $mailText = loadEmailTemplate('done-member', $content, $DATA['sender_userid']);
+                                                       $mailText = loadEmailTemplate('member_user_pool_done', $content, $DATA['sender_userid']);
 
                                                        // Send it also waway
                                                        sendEmail(getUserData('email'), '{--MEMBER_SEND_DONE_SUBJECT--}', $mailText);
@@ -290,7 +290,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                // We have to pay back some points to the sender (we add them directly :-P)
                                if (fetchUserData($userid)) {
                                        // User account does exists, so we can safely pay back!
-                                       $mailText = loadEmailTemplate('back-member', $content, bigintval($userid));
+                                       $mailText = loadEmailTemplate('member_user_pool_back', $content, bigintval($userid));
 
                                        // Send mail out to member
                                        sendEmail(getUserData('email'), '{--MEMBER_BACK_JACKPOT--}' . ' (' . $userid . ')', $mailText);
@@ -299,7 +299,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                        addPointsToJackpot($PB);
 
                                        // Send mail out to admin
-                                       sendAdminNotification('{--ADMIN_BACK_JACKPOT--}' . ' (' . $userid . ')', 'back-admin', $content, 'admin');
+                                       sendAdminNotification('{--ADMIN_BACK_JACKPOT--}' . ' (' . $userid . ')', 'admin_user_pool_back', $content, 'admin');
                                }
                        } // END - if
                } // END - foreach