title: i can't send mail from smtp.gmail.com SMTP CLIENT from asp.net with c#
body: <p>This is my mail sending code.....</p>
  
  <pre><code>    string fromAddress = "from@abc.gov.in";
      string toAddress = "darpansamani@gmail.com";
      string fromPassword = "*********";
      string subject = "Citizens Forum";
      string body = "Demo Body";
  
  
      MailMessage mail = null;
  
      using (mail = new MailMessage(new MailAddress(fromAddress), new MailAddress(toAddress)))
      {
  
          mail.Subject = subject;
          mail.Body = body;
          mail.To.Add(toAddress);
  
          SmtpClient smtpMail = null;
          using (smtpMail = new SmtpClient("smtp.gmail.com"))
          {
              smtpMail.Port = 587;
              smtpMail.EnableSsl = false;
              smtpMail.Credentials = new NetworkCredential(fromAddress, fromPassword);
  
              smtpMail.UseDefaultCredentials = false;
              smtpMail.Send(mail);
              Console.WriteLine("sent");
              Console.ReadLine();
  
          }
  
      }
  </code></pre>
  
  <p>This code give me error of "Unable to read data from the transport connection: net_io_connectionclosed."
  i am using asp.net with c# website and cant send mail to my mail address please help me
  Thank you</p>