added email sending capabilities