added email feature.
Still need to integrate into job controller workflow.