Change referral email formatting to line-based from table