if ($REFERAL['receive_warnings'] == 'Y') {
// Send notification to referal
$REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERAL);
if ($REFERAL['receive_warnings'] == 'Y') {
// Send notification to referal
$REF_MSG = loadEmailTemplate('sponsor_ref_notify', $REFERAL);