make mail sending asynchronous