title: ASP.NET - Password Recovery using SMPT.Gmail.Com
body: <p>I have a login control on my webpage along with a RecoverPassword control. </p>
  
  <p>I have the following code inside of web.config</p>
  
  <pre><code>&lt;system.net&gt;
      &lt;mailSettings&gt;
        &lt;smtp from="MyEmail@gmail.com"&gt;
          &lt;network host="smtp.gmail.com" password="XXXXXXX" port="587"
           userName="MyEmail@gmail.com" /&gt;
        &lt;/smtp&gt;
      &lt;/mailSettings&gt;   
      &lt;/system.net&gt;
  </code></pre>
  
  <p>The error that I keep recieving is:
  The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. 35sm26203922ibs.22</p>
  
  <p>Any Ideas?</p>