added send e-mail feature
Changed to use data structure