Add exception handling for send email.