Question

How can I send an email from C++? Is there a good cross-platform (MS Windows, Linux etc) library that I can use? I'm using GCC (cygwin on MS Windows).

Was it helpful?

Solution

Check out jwSMTP - a cross-platform SMTP class.

http://johnwiggins.net/jwsmtp/

OTHER TIPS

Check out C-Client

  • Apache license
  • Very established library ( makers of Pine email reader, UW-IMAP Server, etc. )
  • Supports IMAP, POP, SMTP, and NNTP
  • Unix and Windows

Look at VMime.

VMime is an all-in-one Internet mail library. This well designed, powerful C++ class library allows you to parse/build/modify MIME messages. With the messaging module, you can connect to POP3/IMAP/SMTP/Maildir very easily, and with the same code!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top