Automates the generation of emails