// Send warnings out?
if ($REFERAL['receive_warnings'] == 'Y') {
// Send notification to referal
- $REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERAL);
- sendEmail($REFERAL['email'], '{--SPONSOR_REF_NOTIFY_SUBJECT--}', $REF_MSG);
+ $REFERAL_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERAL);
+ sendEmail($REFERAL['email'], '{--SPONSOR_REFERAL_NOTIFY_SUBJECT--}', $REFERAL_MSG);
} // END - if
// Free memory