Currently, the only way to dynamically add a referral code to an email is by using an auto pilot campaign. It would be nice if a referral code can be used in any email.