email sending implemented but not tested