added send email and integration test