starting code for email