Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding SSL/TLS to SMTP Email Sending
#3
Hi Remy,

Thanks for the help. I've done what you've instructed and I'm getting an error which seems to be based on the SSLVersions value I am choosing. I downloaded libeay32.dll and ssleay32.dll from https://indy.fulgan.com/SSL/
I wasn't sure which version to download, so I just went for the latest 32bit one. File name : openssl-1.0.2o-i386-win32.zip

Some details on my system:
Windows 64bit
My application 32bit
Delphi XE6
Indy version 10.6.0.5122
Using Port 465
TIdSMTP.UseTLS = utUseImplicitTLS
TIdSSLIOHandlerSocketOpenSSL.SSLOptions.Method = ssImUnassigned

I put the dll's in my application folder.

I tried each of the versions, and the following show the error I got with each one.

Version and it's error:
SSL v1 error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version
SSL v1_1 error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version
SSL v1_2 error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version
SSL v2 ERROR: Error creating SSL context
SSL v3 error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version
SSL v23 error:140770FC:SSL routines:SSS23_GET_SERVER_HELLO:unknown protocol

I can't make a connection with version 2. All other versions connect and authorisation is successful, but can't send an email, due to above error.

Any ideas?

Thanks heaps for the help,
Paul
Reply


Messages In This Thread
RE: Adding SSL/TLS to SMTP Email Sending - by paulcoshott - 09-14-2018, 07:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)