fixing email config