View Full Version : send email in C++ under windows
ehbgamer
07-26-2004, 08:55 AM
Hello,
I need to send emails from my game, the game is written using C++ (no MFC), the game should work under windows.
Is there any free library or free code to send emails from a C application?
regards,
Grimreaper
07-26-2004, 09:43 AM
On windows use CDO. On unix pipe through sendmail.
grimreaper
milieu
07-26-2004, 09:57 AM
Here's a really simple one that I've used in the past.
http://www.codeguru.com/Cpp/I-N/internet/email/article.php/c3409
erikh2000
07-26-2004, 11:09 AM
If you don't want to require the user to have an e-mail account or configure POP server settings, you could post the message from your game to a web page that sends an e-mail on behalf of the user and maybe logs the message in a database. For something like that, libCURL would work well on the client accessing a simple PHP page on a webserver.
-Erik