Interacting with SMTP and Proxy servers and error handling of messages