title: How to click button and open window to send email in c#
body: <p>I want to create a button so that user can click and it will open a small new window where they can send email. This window will have "From", "To", "Subject", "Content" fields and all of that will have default text, user can edit them (except for "From" field). See image below:</p>
  
  <p><img src="https://i.stack.imgur.com/HWXOR.jpg" alt="enter image description here"></p>
  
  <p>What I tried:</p>
  
  <p>I created an email form by: </p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
  &lt;div&gt;
  &lt;/div&gt;
  &lt;p&gt;
  From:&lt;asp:Literal ID="Literal1" runat="server"&gt;&lt;/asp:Literal&gt;
  &lt;/p&gt;
  To:&lt;asp:Literal ID="Literal2" runat="server"&gt;&lt;/asp:Literal&gt;
  &lt;p&gt;
  Subject:&lt;asp:Literal ID="Literal3" runat="server"&gt;&lt;/asp:Literal&gt;
  &lt;/p&gt;
  Content:&lt;asp:Literal ID="Literal4" runat="server"&gt;&lt;/asp:Literal&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Then I try to link this form with my current code:
  Current code: I can send email by this code:</p>
  
  <pre><code>System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
  SmtpClient SmtpServer = new SmtpClient("smtpclientaddresshere");
  mail.From = new MailAddress("defaultFromEmail@domain.com");
  mail.To.Add("email1@yahoo.com,email2@yahoo.com");
  mail.Subject = "Test Mail";
  mail.Body = "This is for testing SMTP mail";
  SmtpServer.Credentials = new System.Net.NetworkCredential("mysmtpserver@something.com", "");
  SmtpServer.Send(mail);
  </code></pre>
  
  <p>Now I don't know is this right to use the form above for email window purpose? And how could I format and link all the fields to my working code?</p>