Fixed mail config issue