email sending functionality is added