for(int i=0;i<=100;i++)
{
MailMessage mailMsg = new MailMessage();        
//设置正文格式
mailMsg.BodyFormat = MailFormat.Html;        
//设置收件人的邮件地址
mailMsg.To = "[email protected]";        
//设置发送者的邮件地址
mailMsg.From = "书山有路<[email protected]>";        
//设置邮件主题
mailMsg.Subject = "【书上有路(YouLu.net)欢迎您】";
//设置邮件内容
mailMsg.Body = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\"http://www.w3.org/TR/html4/loose.dtd\"><html>ddd</html>";
//设置支持服务器验证
mailMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
//设置用户名
mailMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "never52fc");
//设置用户密码
mailMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "xxxxxx");
try
{
//设置发送邮件服务器            
SmtpMail.SmtpServer = "smtp.163.com";            
            
//发送邮件
SmtpMail.Send(mailMsg); }
catch (Exception err)
{
Response.Write("发送失败" + err.Message.ToString());
}
}
----------------------
当发送了20多封的时候就会出错了
但我的程序要求是向我网站一万个会员发送邮件
这要怎么办呢
谢谢