bluetiger9 / SmtpClient-for-Qt

An SMTP Client writen in C++ for Qt. Allows applications to send emails (MIME with text, html, attachments, inline files, etc.) via SMTP. Supports SSL and SMTP authentication.
https://github.com/bluetiger9/SmtpClient-for-Qt/wiki
GNU Lesser General Public License v2.1
449 stars 226 forks source link

Tls 1.3 issue??? #131

Closed bugaenko-cyber closed 1 year ago

bugaenko-cyber commented 1 year ago

[SmtpClient] State: ConnectingState [Socket] State: QAbstractSocket::HostLookupState [Socket] State: QAbstractSocket::ConnectingState [Socket] State: QAbstractSocket::ConnectedState [SmtpClient] State: ConnectedState [Socket] IN: "220 some_server.com ESMTP Postfix (Ubuntu)\r\n" [SmtpClient] State: _EHLO_State [Socket] OUT: "EHLO localhost" [Socket] IN: "250-some_server.com\r\n" [Socket] IN: "250-PIPELINING\r\n" [Socket] IN: "250-SIZE 10240000\r\n" [Socket] IN: "250-ETRN\r\n" [Socket] IN: "250-STARTTLS\r\n" [Socket] IN: "250-ENHANCEDSTATUSCODES\r\n" [Socket] IN: "250-8BITMIME\r\n" [Socket] IN: "250-DSN\r\n" [Socket] IN: "250 CHUNKING\r\n" [SmtpClient] State: _TLS_State [SmtpClient] State: _TLS_0_STARTTLS [Socket] OUT: "STARTTLS" [Socket] IN: "220 2.0.0 Ready to start TLS\r\n" [SmtpClient] State: _TLS_1_ENCRYPT [SmtpClient] State: _TLS_2_EHLO [Socket] OUT: "EHLO localhost" [Socket] ERROR: QAbstractSocket::SocketError(20) [SmtpClient] State: DisconnectingState [Socket] OUT: "QUIT" [Socket] State: QAbstractSocket::ClosingState [Socket] State: QAbstractSocket::ClosingState [Socket] State: QAbstractSocket::UnconnectedState [SmtpClient] State: UnconnectedState

Can anyone explain what is the problem??

aliks-os commented 1 year ago

I have the same problem. Looks like the openSSL is not visible.

bugaenko-cyber Did you fixe this issue?

bugaenko-cyber commented 1 year ago

I did not find a solution, while everything works on the old server. This problem is new. As soon as I decide I will let you know.

aliks-os commented 1 year ago

I already found solution. The libs libcrypto-1_1.dll and libssl-1_1 were added to the binary folder and all works like a charm :)

bluetiger9 commented 1 year ago

@bugaenko-cyber, please check the solution suggested by @aliks-os. Thanks!