modify sendemailwithdocid