move email to config

update references to use yaml setting