• Advertisement
Sign in to follow this  

Email With C++

This topic is 4657 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

I need to send myself an email when my program has an error, as it will be running most of the time and if there is an error I need to know so I can go to that computer and fix it. How can I do this with C++?

Share this post


Link to post
Share on other sites
Advertisement
Unfortunately, C++ doesn't have any email capability built into its runtime library. This means you need to either write your own using sockets, or you need to find a third-party library.

Here's a free one I found using Google:
http://www.codeproject.com/internet/csmtpconn.asp

That one's an MFC class. If you're not using MFC, you should be able to find more examples using Google.

Share this post


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

  • Advertisement