fix transaction error in send email.