title: How to send Newsletters (bulk emails) asynchronously in ASP.NET
body: <p>I need to send about 5000 emails as newsletter to my website users asynchronously.. The problem is i don't know the best way to send them asynchronously ..Please help me updating my code to make it asynchronously </p>
  
  <p>My Code:</p>
  
  <pre><code>   public string SendEmail()
      {
  
  
          foreach (var emailAddress in EmailList)
  
          {
              var message = new MailMessage("myemail@gmail.com", emailAddress);
  
              message.Subject = "hi";
              SmtpClient client = new SmtpClient("smtp.gmail.com", 587);
              client.Credentials = new NetworkCredential("myemail@gmail.com", "*****");
              client.EnableSsl = true;
              client.Send(message);
          }
          return "done";
      }
  </code></pre>
  
  <p>Thank you , Lucy</p>