Archived Forum Post

Index of archived forum posts

Question:

Cannot connect to Gmail IMAP server

Aug 09 '17 at 12:25

Using the example provided in https://www.example-code.com/csharp_winrt/imap_ssl.asp

When I call success = await imap.ConnectAsync("imap.gmail.com");

I get as a last error

ChilkatLog:
  Connect_Imap:
    DllDate: May 29 2017
    ChilkatVersion: 9.5.0.68
    UnlockPrefix: Anything for 30-day trial
    Architecture: Little Endian; 32-bit
    VerboseLogging: 0
    connectInner:
      AutoFix: IMAP port 993 is traditionally for implicit SSL/TLS.
      To prevent auto-fix, set the AutoFix property = False/0
      connectToImapServer:
        hostname: imap.gmail.com
        port: 993
        socket2Connect:
          connect2:
            connectImplicitSsl:
              clientHandshake:
                clientHandshake2:
                  readHandshakeMessages:
                    Failed to read beginning of SSL/TLS record.
                    b: 0
                    dbSize: 0
                    nReadNBytes: 0
                    idleTimeoutMs: 60000
                  --readHandshakeMessages
                --clientHandshake2
              --clientHandshake
              Client handshake failed. (3)
            --connectImplicitSsl
            ConnectFailReason: 103
          --connect2
        --socket2Connect
        failReason: 0
      --connectToImapServer
      connect failed.
    --connectInner
    Failed.
  --Connect_Imap
--ChilkatLog

Thanks for your help


Answer

What happens if you try a non-async call instead? So:

success = imap.Connect("imap.gmail.com")

Instead of

success = await imap.ConnectAsync("imap.someMailServer.com")

Answer

Connect not available with the UWP library.


Answer

This should be fixed in the 9.5.0.69 pre-release here: https://www.nuget.org/packages/Chilkat.uwp/9.5.0.69-pre