split up generic functions from mailer to be able to re-use them, load settings from yaml, add e_smtp_host and _port to email settings, add a blank email_template for testing for now