I’m able to send email from accounts that use the port 465 but when I have to use the port 587 I have this message in the log:
Trying 17.42.251.41:587…
TCP_NODELAY set
Connected to smtp.mail.me.com (17.42.251.41) port 587 (#0)
…
TLSv1.3 (OUT), TLS handshake, Client hello (1):
…
220 i
error:1408F10B:SSL routines:ssl3_get_record:wrong version numberClosing connection 0
my settings are :
dim c as CURLSMBS
c.optionPort = 587
c.OptionUseSSL = c.kUseSSLall
c.OptionSSLVersion = c.kSSLVersionTLSv13
And I tried all the possibles combinations with OptionUseSSL and OptionSSLVersion and nothing works.
When I use the SMTPSecureSocket with these settings:
MailSocket.Port = 587
MailSocket.SMTPConnectionType = SMTPSecureSocket.SMTPConnectionTypes.SSLTLS
MailSocket.SSLEnabled = true
I’m able to send emails with hotmail and iCloud.
I’m surely don’t have the correct equivalent settings for CURLSMBS.
Can somebody help.
Thanks
Daniel Pereira