SMTP client fails to send message on local host, succeeds on remote host
问题 I have a small tcp server that is used, among other things, to send mails through a SMTP server. The problem is, it works correctly when I run it on my development machine (a remote connection to the smtp server), however when I run the application on the same machine as the SMTP server (Windows Server 2008 R2) I get the following exception: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io