referral email should be sent after commit, not after create