Email sending is now executed in a separate thread (background) to improve responsiveness