add switch to send mail & yixin