$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);
+ sendEmail(getUserData('userid'), $DATA['subject'], $mailText, $isHtml);
// Count sent mails...
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `emails_sent`=`emails_sent`+1 WHERE `userid`=%s LIMIT 1",
);
// 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);
+ sendEmail(getUserData('userid'), '{--MEMBER_SEND_DONE_SUBJECT--}', $mailText);
} // END - if
// Set status to SEND because we completely send it away
// 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);
+ sendEmail($userid, '{--MEMBER_BACK_JACKPOT--}' . ' (' . $userid . ')', $mailText);
} elseif (isExtensionActive('jackpot')) {
// Add to jackpot
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