如何在 C++ 中使用 yahoo 或 gmail 发送电子邮件

2022-01-23 00:00:00 email gmail c++ yahoo

I wanna send an email in my c++ program, it seems little complex. Is there way to use yahoo or gmail to use them to send my emails?

解决方案

A basic internet search reveals the following:

  1. C++ SMTP example
  2. VMime a C++ Mail library
  3. libsmtp a C library to send mail via smtp

In short if you have a gmail or yahoo account you can use their SMTP server to send messages using either of the three links above to assist you in using SMTP.

相关文章