Sign in to follow this  
jtmerchant

Email With C++

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this