Adds support for sending emails

`app_name` sounds OK. I'll change here and on headquarters as well