made email sending asynchronous