modify the send email bug