Modified SMTP to implement BestSocketEver