better SMTP error handling