if senddoumail failed ,then stop all