i 正在建立一个电子邮件客户,从服务器机组而不是员工和管理当局协调会发送电子邮件地址,我写道:
SmtpClient server = new SmtpClient();
server.Host= "50.23.128.66";
server.Port = 25;
server.Send("[email protected]", "[email protected]", "hi", "hope it works");
但是,如果发生错误,即:
Unhandled Exception: System.Net.Mail.SmtpException: Service not available, closing transmission channel. The server response was: Cannot connect to SMTP server 50.23.128.66 (50.23.128.66:25), connect error 10061
i 实际上认为港口是错误的。 ∗∗∗ 采用“视窗服务器”的方式