hi. i need to send nearly 700 email at a time using asp.net., the email address will be in dataset, using for loop i had taken the email address one by one., but i dont know whether it will send the email without timeout thread or something else.
For testing purpose i can't able to test to send mail upto 700 Address.
Here is my code.
ds = objDb.ActiveMailID();
for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++)
{
MailMessage message = new MailMessage();
message.From = "info@domain.net";
string to = ds.Tables[0].Rows[i]["Email"].ToString();
message.To = to;
message.Subject = txttitle.Text.ToString();
message.BodyFormat = MailFormat.Html;
message.Body = PanelToHtml(Panel1);
message.Priority = MailPriority.Normal;
SmtpMail.SmtpServer = "mail.domain.com";
SmtpMail.Send(message);
}