refactoring: rename Func type param
change CdoMail API