added async email sending