Improve curl_pool and mail_pool stability
Add email integration test