Jump to content
  • Advertisement
Sign in to follow this  
makingroulette

sending email from my c++ application

This topic is 4871 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to send an email message from a c++ application? ive learned that I will need to interface with an SMTP server in order to send email. I want my application to report the user's usage of the application, and have that data sent to myself via email.

Share this post


Link to post
Share on other sites
Advertisement
The easiest way is to use the mail API on Windows (which will go through Outlook or Outlook Express, most likey), and to stick the message in a file in /tmp and call system("sendmail ...args...") on UNIX.

If you want to connect directly to a mail server, google for RFC 821, which contains the basic SMTP protocol. You open a SOCK_STREAM (TCP) connection to the server, and do a simple, text-based "chat" dialog to send the message.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!