简体   繁体   English

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

[英]How to send Email through a C++ program?

How can I send an email from C++? 如何从C ++发送电子邮件? Is there a good cross-platform (MS Windows, Linux etc) library that I can use? 我可以使用一个好的跨平台(MS Windows,Linux等)库吗? I'm using GCC (cygwin on MS Windows). 我正在使用GCC(在MS Windows上为Cygwin)。

Check out C-Client 签出C客户端

  • Apache license Apache许可证
  • Very established library ( makers of Pine email reader, UW-IMAP Server, etc. ) 完善的库(Pine电子邮件阅读器,UW-IMAP Server等的制造商)
  • Supports IMAP, POP, SMTP, and NNTP 支持IMAP,POP,SMTP和NNTP
  • Unix and Windows Unix和Windows

Look at VMime . 看一下VMime

VMime is an all-in-one Internet mail library. VMime是一个多合一的Internet邮件库。 This well designed, powerful C++ class library allows you to parse/build/modify MIME messages. 这个设计良好,功能强大的C ++类库使您可以解析/构建/修改MIME消息。 With the messaging module, you can connect to POP3/IMAP/SMTP/Maildir very easily, and with the same code! 使用消息传递模块,您可以使用相同的代码轻松地连接到POP3 / IMAP / SMTP / Maildir!

Check out jwSMTP - a cross-platform SMTP class. 查看jwSMTP-跨平台SMTP类。

http://johnwiggins.net/jwsmtp/ http://johnwiggins.net/jwsmtp/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM