karastojko / mailio

mailio is a cross platform C++ library for MIME format and SMTP, POP3 and IMAP protocols. It is based on standard C++ 17 and Boost library.
Other
372 stars 98 forks source link

Switching to SSL failed #148

Closed frank10gm closed 9 months ago

frank10gm commented 9 months ago

I receive this problem when authenticating to smtps: mailio::dialog_error: Switching to SSL failed

It was working before upgrading to: mailio:arm64-osx -> 0.23.0

karastojko commented 9 months ago

The version you are using is this one?

frank10gm commented 9 months ago

Yes, that one. I updated today. I tried with gmail smtp.

karastojko commented 9 months ago

It looks like a problem with the SSL verification. In the version 0 23 I have imposed the stronger SSL verification by default, which seems to be too much for many email servers. It is fixed in the latest versions. If you still want to stay on 0.23 then you have to change the SSL options by using smtps::ssl_options() with the value dialog::ssl_options_t::verify_none. Let me know whether it fixes the problem.

frank10gm commented 9 months ago

Thanks! Very good. Thanks also for this very good library :)

frank10gm commented 9 months ago

when do you plan to release 0.24 ?

karastojko commented 9 months ago

I cannot say now the date, not even the approximate one. There are few bugs to solve and I would need to add at least one feature in order to declare the new version.