add email settings to config