About clearing the Queue when the page load in ASP.net
<p>I'm trying to fill a queue with user's mails to send confirmation mails to them after a period of time, so every time any user fill his registration form I add him to the queue in order to send mails to them after about one minute and here is my code</p>

<pre><code>public static class Gmail
    {
        private static int ? date;
        public static bool SendMail(string AdminMail,string AdminPassword,string subject,string toAddress, string content,DateTime SendTime)
        {
            var toAddressList = new Queue&lt;string&gt;();
            toAddressList.Enqueue(toAddress);
            if(date==null)
            {
                date = DateTime.Now.Second;
            }
            if (date-SendTime.Second &gt; 120)
            {
                    var message = new MailMessage
                                      {
                                          From = new MailAddress(AdminMail)
                                      };

                    foreach (var toAddressl in toAddressList)
                    {
                        message.To.Add(new MailAddress(toAddressl));
                    }

                    message.Subject = subject;
                    message.Body = content;
                    message.IsBodyHtml = true;
                    var smtp = new SmtpClient
                                   {
                                       Credentials = new System.Net.NetworkCredential(AdminMail, AdminPassword),
                                       Port = 587,
                                       Host = "smtp.gmail.com",
                                       EnableSsl = true
                                   };
                    smtp.Send(message);
                //date = SendTime;
                return true;
            }
            return false;
        }
    }
</code></pre>

<p>but actually what happens is that the queue starts from zero every time, so it is only filled with the mail of the current registered users and never contain the mails of the previous registered users which I want them to exist as I will send mails to all mails existing in the queue.So I'm wondering how I can prevent the queue from been cleared when the page loads.Any ideas??</p>
