test the async send_mail function