disable send mail when test.