[WO-732] Better error codes for smtpclient