Catch SMTP errors.