这是我的代码
for(int i = 0; i < number ; i++)
{
MailAddress to = new MailAddress(iMail.to);
MailAddress from = new MailAddress(iMail.from, iMail.displayName);
string body = iMail.body;
string subject = iMail.sub;
oMail = new MailMessage(from, to);
oMail.Subject = subject;
oMail.Body = body;
oMail.IsBodyHtml = true;
oMail.Priority = MailPriority.Normal;
oMail.Sender = from;
s = new SmtpClient(smtpServer);
s.ServicePoint.ConnectionLeaseTimeout = 0;
if (s != null)
{
s.Send(oMail);
}
oMail.Dispose();
s = null;
}
我正在使用此代码发送超过 60,000 封电子邮件,现在我的问题是一些收件人会立即收到电子邮件,但其中一些会在几分钟后收到,有些甚至会在几个小时后收到,而且可能很多人在到达目的地之前就迷路了。我的这个问题仍然没有答案。我真的需要帮助。我被困住了。谢谢