Send emails
Refactored code (adding library)