initial email build functioning