refactored version of Mail functionality: AsyncTaskExecutor instead of TaskExecutor