【发布时间】:2013-05-24 07:02:56
【问题描述】:
我想通过特殊的邮箱账号自动发送邮件,但是现在我只知道邮箱地址:tsp.monitor@qorosauto.com 和密码。那么你知道如何获取 SMTP 服务器吗?下面是我的 C# 代码:
SmtpClient client = new SmtpClient();
client.Host = "What is the SMTP Server, I want to get from email address, can you help me";
string account = "tsp.monitor@qorosauto.com";
string password = "Qoros111";
client.Port = 587;
client.EnableSsl = true;
client.Timeout = 100000;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = false;
client.Credentials = new System.Net.NetworkCredential(account, password);
【问题讨论】: