问题
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?
回答1:
A basic internet search reveals the following:
- C++ SMTP example
- VMime a C++ Mail library
- 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.
回答2:
You could try using the SMTPClientSession from the POCO library.
回答3:
This tutorial has everything you need, if you are working in a .net environment.
来源:https://stackoverflow.com/questions/5926294/how-to-send-emails-using-yahoo-or-gmail-in-c