title: adding replyto when sending email
body: <p>I'm sending email with asp.net c#. everything work perfect except replyto. I'm setting replyto  and send the email to myself. in the email client (ie. gmail) the replyto is correct but the reply goes to the email sender not to the alternate replyto that I have assigned. this is my code:</p>
  
  <pre><code>public void SendEmail(string subject, string body, string to, string reply,string replytoname, int nameID)
  {
      MailAddress Sender = new MailAddress("sender@mydomain.com", "sender name", System.Text.Encoding.UTF8);
      MailAddress Receiver = new MailAddress(to);
      MailAddress Reply = new MailAddress(reply, replytoname, System.Text.Encoding.UTF8);
      MailMessage msg = new MailMessage(Sender, Receiver);
      msg.Subject = subject;
      msg.SubjectEncoding = System.Text.Encoding.UTF8;
      msg.BodyEncoding = System.Text.Encoding.UTF8;
      msg.IsBodyHtml = true;
      msg.ReplyTo = Reply;
      msg.Body = body;
      SmtpClient smtp = new SmtpClient();
      smtp.Host = "smtp.mydomain.com";
      smtp.Port = 25;
      smtp.EnableSsl = true;
      smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
      smtp.UseDefaultCredentials = false;
      smtp.Credentials = new NetworkCredential("sender@mydomain.com", "password");
      ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };
      smtp.Send(msg);
  } 
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Ce1U8.gif" alt="enter image description here"></p>