Convert sending mail to async/await.