Lennie De Villiers
Lennie De Villiers

Reputation: 345

How to send Email through a C++ program?

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).

Upvotes: 2

Views: 1930

Answers (3)

kervin
kervin

Reputation: 11858

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

Upvotes: 3

Rob
Rob

Reputation: 78678

Check out jwSMTP - a cross-platform SMTP class.

http://johnwiggins.net/jwsmtp/

Upvotes: 1

Igor Semenov
Igor Semenov

Reputation: 1578

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!

Upvotes: 2

Related Questions