在主机上如下配置了邮箱,
<SMTP Host="smtp.mxhichina.com" Port="465" UserName="***" Password="***" DefaultCredentials="true" />
但是发邮件时出错:
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)