Add email notifications 

Add notifications if defined in settings.

- closes issue #1