added email configurations and html templates