title: How to attach multiple files to the Email
body: <p>How to attach multiple files to the send Email .</p>
  
  <p>I use the following method to send Email .</p>
  
  <pre><code>   public static void sendMail(string to, string from, string password, string subject, string body, int dep_code)
          {
                  MailMessage mail = new MailMessage();
                  SmtpClient smtp = new SmtpClient();
                  if (to == "")
                      to = "-------";
                  MailAddressCollection m = new MailAddressCollection();
                  m.Add(to);
                  mail.Subject = subject;
                  mail.From = new MailAddress(from);
  
                  string banneredBody = @"&lt;table width='100%' border='0' dir='rtl'&gt;" +
                                            "&lt;tr&gt;" +
                                              "&lt;td align='center'&gt;&lt;img src=cid:Image1  /&gt;&lt;/td&gt;" +
                                            "&lt;/tr&gt;" +
                                            "&lt;tr&gt;" +
                                              "&lt;td align='center'&gt;" + body + "&lt;/td&gt;" +
                                            "&lt;/tr&gt;" +
                                         "&lt;/table&gt;";
  
                  mail.Body = banneredBody;
                  //mail.Body = body;
                  mail.IsBodyHtml = true;
                  mail.ReplyTo = new MailAddress(from);
                  mail.To.Add(m[0]);
                  smtp.Host = "....";
                  smtp.Port = 25;
                  smtp.EnableSsl = false;
                  smtp.Credentials = new System.Net.NetworkCredential(from, password);
                  ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };
  
                  smtp.Send(mail);
  
          }
  </code></pre>
  
  <hr>
  
  <p>How to pass files parameter to attach them .</p>
  
  <p>I use <a href="http://demos.telerik.com/aspnet-ajax/asyncupload/examples/overview/defaultcs.aspx" rel="nofollow">RadAsyncUpload</a> :</p>
  
  <pre><code> private List&lt;Telerik.Web.UI.UploadedFileInfo&gt; uploadedFiles = new List&lt;Telerik.Web.UI.UploadedFileInfo&gt;();
          public List&lt;Telerik.Web.UI.UploadedFileInfo&gt; UploadedFiles
          {
              get { return uploadedFiles; }
              set { uploadedFiles = value; }
          }
  </code></pre>
  
  <hr>
  
  <pre><code> private void PopulateUploadedFilesList()
          {
              foreach (UploadedFile file in rad_upload.UploadedFiles)
              {
                  UploadedFileInfo uploadedFileInfo = new UploadedFileInfo(file);
                  UploadedFiles.Add(uploadedFileInfo);
              }
          }
  </code></pre>