fix email send bug