karastojko / mailio

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

IMAP(Switching to SSL failed.) #131

Closed YZJClear closed 1 year ago

YZJClear commented 1 year ago

vcpkg: mailio[core]:x64-windows-static -> 0.21.0#2

code: mailio::imaps conn("com", 143); conn.authenticate("user", "pwd", mailio::imaps::auth_method_t::LOGIN); exception: Switching to SSL failed.

karastojko commented 1 year ago

Are you sure that the port 143 is with TLS? By default, it is the non-TLS port.

YZJClear commented 1 year ago

my fault, i should be use mailio::imap, not mailio::imaps