login about faq

When attempting to OpenSmtpConnection in Chilkat Version 9.5.0.48 The settings are not configured correctly. A common mistake for users. We have implemented a Test button to verify the settings are correct. Unfortunately if SSL and TLS options have not been set this log is what happens.

Is there a setting to prevent this error from being ignored?

  <ensureSmtpAuthenticated>
    <smtpAuthenticate>
      <smtp_host>smtp.gmail.com</smtp_host>
      <smtp_port>25</smtp_port>
      <smtp_user>mySmtpLogin</smtp_user>
      <smtpAuthenticate>
        <info>This SMTP server did not list authentication methods.</info>
        <info>Defaulting to LOGIN authentication method.</info>
        <login_method>LOGIN</login_method>
        <auth_login>
          <smtpSendGet2>
            <sendCmdToSmtp>
              <SmtpCmdSent><![CDATA[AUTH LOGIN<CRLF>]]></SmtpCmdSent>
            </sendCmdToSmtp>
            <readSmtpResponse>
              <SmtpCmdResp>530 5.7.0 Must issue a STARTTLS command first. y145sm7205134ywd.0 - gsmtp</SmtpCmdResp>
            </readSmtpResponse>
          </smtpSendGet2>
          <error>AUTH LOGIN failed</error>
        </auth_login>
        <info>Ignoring the error, assuming no authentication is necessary.</info>
      </smtpAuthenticate>
      <ConnectionType>Unencrypted TCP/IP</ConnectionType>
    </smtpAuthenticate>
  </ensureSmtpAuthenticated>

asked Aug 06 '15 at 17:14

TracyP's gravatar image

TracyP
1062


In 9.5.0.51, the VerifySmtpLogin method returns a success. I know it should fail for one of two reasons.

  1. StartTLS is required by the server.
  2. The username and password are invalid.

I decided to look at the OpenSmtpConnection and SmtpAuthenticate methods to see what type of detail I was getting from the LastErrorXml. The results are very different from VerifySmtpLogin.

I have received a preview of 9.5.0.52, and the VerifySmtpLogin is returning a failure code.

link

answered Aug 14 '15 at 13:29

TracyP's gravatar image

TracyP
1062

Thanks for the update TracyP, and good to know that the issue appears to be fixed for the next micro update.

(Aug 15 '15 at 18:35) jpbro ♦

Instead of rolling your own test methods, do the VerifySmtpConnection and VerifySmtpLogin methods accomplish what you need?

link

answered Aug 14 '15 at 08:36

jpbro's gravatar image

jpbro ♦
1.1k2618

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×47

Asked: Aug 06 '15 at 17:14

Seen: 780 times

Last updated: Aug 15 '15 at 18:35

powered by OSQA