fixed referral mailer, no longer crashes if email in wrong format