title: sending mail to multiple users through asp.net
body: <p>I want to modify this method to allow sending mail to multiple users instead of one by one .</p>
  
  <p>I use the following method to send mail to bulk of users through putting the method in a loop according to the number of users but it takes several minutes making the user feeling that something wrong has been happened ..</p>
  
  <pre><code>public static string sendMail(string to, string title, string subject, string body)
          {
              try
              {
                  MailMessage mail = new MailMessage();
                  SmtpClient smtp = new SmtpClient();
                  if (to == "")
                      to = "----@gmail.com";
                  MailAddressCollection m = new MailAddressCollection();
                  m.Add(to);
                  mail.Subject = subject;
                  mail.From = new MailAddress( "----@gmail");
                  mail.Body = body;
                  mail.IsBodyHtml = true;
                  mail.ReplyTo = new MailAddress("----@gmail");
                  mail.To.Add(m[0]);
                  smtp.Host = "smtp.gmail.com";
                   client.Port = 25;
                  smtp.EnableSsl = true;
                  smtp.Credentials = new System.Net.NetworkCredential("----@gmail", "####");
                  ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; 
  
                  smtp.Send(mail);
  
                  return "done";
              }
              catch (Exception ex)
              {
                  return ex.Message;
              }
          }
  </code></pre>
  
  <p>Is there some way to refactor this method to allow sending the mail to multiple user .</p>