如何通过C ++程序发送电子邮件?

时间:2020-03-06 14:42:30  来源:igfitidea点击:

如何从C ++发送电子邮件?我可以使用一个良好的跨平台(MS Windows,Linux等)库吗?我正在使用GCC(在MS Windows上为Cygwin)。

解决方案

看一下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!

签出jwSMTP一个跨平台的SMTP类。

http://johnwiggins.net/jwsmtp/

签出C客户端

  • Apache许可证
  • 完善的库(Pine电子邮件阅读器,UW-IMAP Server等的制造商)
  • 支持IMAP,POP,SMTP和NNTP
  • Unix和Windows