add email content-type support and configuration option; tested delivery cron