fixed errors in mail setup