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

Require the asynchronous API #82

Open xiexin0606 opened 3 years ago

xiexin0606 commented 3 years ago

This library is really good, much better than vmime and mailcore2. But when will the asynchronous API is ready? I see it built base on the boost ASIO, it will be easier to support asynchronous API.

Another question: does it thread-safe? Can I use multiple threads to send bulk emails at the same time?

Thanks

karastojko commented 3 years ago

Hi, I plan to add the asynchronous API but after the release of the version 1.0. Currently, I clean some bugs which should make the library more robust.

By taking the last version (commit of few minutes ago), you should be able to use it with a thread per connection. Since there were some corner cases which led to crashes, let me know if you encounter an issue. So far, I tested extensively only with IMAP (plain and SSL), but since the issue was on the TCP level, I expect to work for SMTP without problems.