Archived Forum Post

Index of archived forum posts

Question:

SMTP login fails after 1st success

Oct 09 '15 at 09:07

We're using the activeX control and have a customer that can send 1 email, but when he tries a 2nd, receives the following error:

  SendEmail:
    DllDate: May  8 2015
    ChilkatVersion: 9.5.0.49
    UnlockPrefix: RAYMONMAILQ
    Username: D4KDM9R1:George
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 0
    sendEmailInner:
      renderToMime:
        createEmailForSending:
          xSigningAlg: sha1
          Auto-generating Message-ID
        --createEmailForSending
        renderToMime: Elapsed time: 0 millisec
      --renderToMime
      sendMimeInner:
        progressTotal: 1434
        ensureSmtpSession:
          ensureSmtpConnection:
            SmtpHost: smtp.onecommunications.net
            SmtpPort: 25
            SmtpUsername: george.dawkins@binnewater.com                     
            SmtpSsl: 0
            StartTLS: 0
            smtpConnect:
              smtpHostname: smtp.onecommunications.net
              smtpPort: 25
              connectionIsReady:
                Need new SMTP connection
              --connectionIsReady
              smtpSocketConnect:
                socketOptions:
                  SO_SNDBUF: 262144
                  SO_RCVBUF: 4194304
                  TCP_NODELAY: 1
                  SO_KEEPALIVE: 1
                --socketOptions
              --smtpSocketConnect
              smtpGreeting:
                readSmtpResponse:
                  SmtpCmdResp: 220 ***********************************
                --readSmtpResponse
              --smtpGreeting
              ehloCommand:
                sendCmdToSmtp:
                  SmtpCmdSent: EHLO D4KDM9R1<crlf>
                --sendCmdToSmtp
                readSmtpResponse:
                  SmtpCmdResp: 250-smtp005.earthlinkbusiness.com
                  SmtpCmdResp: 250-PIPELINING
                  SmtpCmdResp: 250 8BITMIME
                --readSmtpResponse
              --ehloCommand
            --smtpConnect
          --ensureSmtpConnection
          ensureSmtpAuthenticated:
            smtpAuthenticate:
              smtp_host: smtp.onecommunications.net
              smtp_port: 25
              smtp_user: <<customer's user="" name="" that="" worked="" the="" first="" time="">
              smtpAuthenticate:
                login_method: LOGIN
                auth_login:
                  smtpSendGet2:
                    sendCmdToSmtp:
                      SmtpCmdSent: AUTH LOGIN<crlf>
                    --sendCmdToSmtp
                    readSmtpResponse:
                      SmtpCmdResp: 502 unimplemented (#5.5.1)
                    --readSmtpResponse
                  --smtpSendGet2
                  AUTH LOGIN failed
                --auth_login
                Failed to login using LOGIN method
              --smtpAuthenticate
              ConnectionType: Unencrypted TCP/IP
            --smtpAuthenticate
          --ensureSmtpAuthenticated
        --ensureSmtpSession
      --sendMimeInner
    --sendEmailInner
    Failed.
  --SendEmail
--ChilkatLog

Answer

Please test first with the latest version of Chilkat (v9.5.0.52).

Also.. it's probably not a good idea to be doing SMTP over an unencrypted TCP connection (port 25) with the "LOGIN" authentication method, where the login and password can be clearly seen by anybody sniffing the network...


Answer

i had faced the same issue like above , i had tried with new dll which is relased on 26th aug 2015 ,version 9.5.0.52. can you tell what changes needs to be done .


Answer

In my particular case, I changed the port to 465 and enabled SSL and that worked for my client, even though his ISP said they didn't use SSL.