Fixing no mail config bug