updated template config wrt emailFactory class