title: The SMTP server requires a secure connection or the client was not authenticated.
body: <p>I am creating a form using "createuserwizard" in asp.This is my code.</p>
  
  <pre><code>&lt;asp:CreateUserWizard ID="userwizard" ContinueDestinationPageUrl="~/secretfiles/secret.aspx" runat="server" &gt;
      &lt;MailDefinition BodyFileName="register.txt" Subject="Registration Confirmation" From="amrit.enest@gmail.com" /&gt;
      &lt;/asp:CreateUserWizard&gt;
  </code></pre>
  
  <p>This is my web.config file settings.</p>
  
  <pre><code> &lt;mailSettings&gt;
        &lt;smtp deliveryMethod="Network" from="amrit.enest@gmail.com"&gt;
          &lt;network host="smtp.gmail.com" port="25" userName="amrit.enest@gmail.com" password="sending emails's password" /&gt;
        &lt;/smtp&gt;
      &lt;/mailSettings&gt;
  </code></pre>
  
  <p>Then settled up a Smtp .in ISS settings i selected following options.</p>
  
  <pre><code>-&gt;Use localhost(SMTP)
  -&gt;port=25
  -&gt;authentication not required 
  </code></pre>
  
  <p>Now when a new user click submit button ,it gives following error message and mail is not being send.</p>
  
  <p><strong>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. ud8sm21095949igb.4</strong> </p>
  
  <p>Please help guys.</p>