fix the issue of send mail