开发者

How to send emails using yahoo or gmail in c++

开发者 https://www.devze.com 2023-03-04 06:33 出处:网络
I wanna send an email in my c++ program, it seems little 开发者_StackOverflow中文版complex.Is there way to use yahoo or gmail to use them to send my emails?A basic internet search reveals the followin

I wanna send an email in my c++ program, it seems little 开发者_StackOverflow中文版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.


You could try using the SMTPClientSession from the POCO library.


This tutorial has everything you need, if you are working in a .net environment.

0

精彩评论

暂无评论...
验证码 换一张
取 消