fix mail send bug and add cat model api