title: send email as template in asp.net
body: <p>i am able to send and receive emails through my application, but its jus plain text content. I want to send full formatted content decorated with css and div or tables.
  How to do it?
  I am using asp.net 3.5 VS2010.</p>
  
  <pre><code>public void Send(string To, string Subject, string Body)
  {
      System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage("mymail@gmail.com", To);
      m.Subject = Subject;
      m.Body = Body;
      m.IsBodyHtml = true;
      m.From = new MailAddress("mymail@gmail.com");
  
      m.To.Add(new MailAddress(To));
      SmtpClient smtp = new SmtpClient();
      smtp.Host = "198.208.0.***";
  
  
      NetworkCredential authinfo = new NetworkCredential("mymail@gmail.com", "password");
      smtp.UseDefaultCredentials = false;
      smtp.Credentials = authinfo;
      smtp.Send(m);
  }
  </code></pre>
  
  <p>calling this function like<br>
       <code>Send("mynewmail@gmail.com", "testmail", "new test body");</code>
  this is my function.</p>