它会在几分钟内发送2-8次。这不是一直发生的,每次他们发送电子邮件给同一收件人时也不会发生;它似乎是随机的。收件人收到发件人发送的多封电子邮件
我的邮箱代码
SmtpClient oSmtpClient = new SmtpClient();
oSmtpClient.Port = oSmtpSection.Network.Port;
oSmtpClient.EnableSsl = bool.Parse(oSmtpSection.Network.EnableSsl.ToString());
oSmtpClient.UseDefaultCredentials = true;
oSmtpClient.Host = oSmtpSection.Network.Host;
oSmtpClient.Credentials = new NetworkCredential(oSmtpSection.Network.UserName, oSmtpSection.Network.Password);
//Add this line to bypass the certificate validation
System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate(object s,
System.Security.Cryptography.X509Certificates.X509Certificate certificate,
System.Security.Cryptography.X509Certificates.X509Chain chain,
System.Net.Security.SslPolicyErrors sslPolicyErrors)
{
return true;
};
请帮助。
几乎可以肯定的是,实际发生的事情是您发送多封电子邮件,但您只是没有隔离如何或为何发生这种情况。如果不是这样,那么接下来要看的是电子邮件系统中是否安装了某些组件(如防病毒系统),并且配置不当。 –