Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The SMTP server requires a secure connection or the client was not authenticated.

I am creating a form using "createuserwizard" in asp.This is my code.

<asp:CreateUserWizard ID="userwizard" ContinueDestinationPageUrl="~/secretfiles/secret.aspx" runat="server" >
    <MailDefinition BodyFileName="register.txt" Subject="Registration Confirmation" From="[email protected]" />
    </asp:CreateUserWizard>

This is my web.config file settings.

 <mailSettings>
      <smtp deliveryMethod="Network" from="[email protected]">
        <network host="smtp.gmail.com" port="25" userName="[email protected]" password="sending emails's password" />
      </smtp>
    </mailSettings>

Then settled up a Smtp .in ISS settings i selected following options.

->Use localhost(SMTP)
->port=25
->authentication not required 

Now when a new user click submit button ,it gives following error message and mail is not being send.

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

Please help guys.

like image 487
user1544975 Avatar asked Jan 28 '26 18:01

user1544975


1 Answers

Use enableSsl="true", like this:

 <mailSettings>
  <smtp deliveryMethod="Network" from="[email protected]">
    <network enableSsl="true" host="smtp.gmail.com" port="25" userName="[email protected]" password="sending emails's password" />
  </smtp>
</mailSettings>
like image 193
Lunik Avatar answered Jan 30 '26 08:01

Lunik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!