added email sending