我正在尝试在我的网络之外发送邮件,这是我遇到的错误,我知道这是中继错误。我需要知道一个适当的解决方案,以便可以发送邮件。我正在尝试这段代码:
SmtpClient client = new SmtpClient();
client.Host = smtp....com;
client.Port = 25;
client.EnableSsl = true;
client.Credentials = new System.Net.NetworkCredential(sEmailID, sPassword);
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.Send(message);