added settings to email context