referral email rewrite