Sending Bulk Mails ASP.NET not working
<p>I am trying to send bulk of mails but i only receive 500 mails not matter how many mails i send.I am sending mails in loop.Here is a sample.</p>

<pre><code>foreach (EmailInfo data in emaildata.ToArray())
{
    SmtpClient smtpClient = new SmtpClient();
    MailMessage mailMsg = new MailMessage();

    smtpClient.Send(mailMsg);

    smtpClient.Dispose();
}
</code></pre>

<p>I am using <code>.net framework 4.0</code>.
I get this exception after 500 mails are sent</p>

<p><code>Service not available, closing transmission channel. The server response was: too many connections</code>.</p>
