Add basic emailing and template rendering.
Fix configuration object.
Fix configuration, add basic email template.