Sending bulk mail in background
<p>I have called  thread  in master page on page load and called EMail function and it as follows :</p>

<pre><code>Page_load()
{
    CreatingThread();
}

protected void CreatingThread()
{
    Thread tSendMails;
    tSendMails = new System.Threading.Thread(delegate() { EmailQueueSettings(); });
    tSendMails.IsBackground = true;
    tSendMails.Start();
}

protected void EmailQueueSettings()
{
    // Function to get emails which are not sent ;
    // looping it and sending it one by one
    // Function to send mails
    // Updating the status after mail is sent   
}
</code></pre>

<p>Mails are going but to the same user multiple times mails are sent to them.</p>

<p>Is it possible assign different thread and different mails when a page is loaded next time? </p>
