Jump to content
  • Advertisement
Sign in to follow this  
bigjoe11a

Emails in C++

This topic is 3751 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 been doing some searching and I have not fount any thing that can give me a sample of how to send a email in C++. Thanks again Joe

Share this post


Link to post
Share on other sites
Advertisement
That's probably because C++ has no concept of "email". However, you can write code to do this, but it will require knowledge of network programming. You will need to open a socket to an email server (usually port 25), and then communicate with it using the Simple Mail Transfer Protocol (SMTP).

Share this post


Link to post
Share on other sites
You're probably referring to the email function that is available in PHP. The PHP function will either call a local MTA to send the email, or will act as a MTA itself.

Regardless, you should regard C++ not to have an MTA available, as the majority of OSes don't (Windows being a prime example). SMTP protocol is not complex, in fact, it's human readable. If you wanted to, you could telnet emails.

Share this post


Link to post
Share on other sites
You are using the wrong language if you want to be able to easily program tasks like sending e-mails and the like.

Share this post


Link to post
Share on other sites
Quote:
Original post by bigjoe11a
Not realy, I just wanted to know if there was an easy way of doing it, So I could add that option to some of my projects.


Really, it isn't much more difficult than to program than downloading a file from the web. There are also a couple of C++ SMTP libraries on the web that simplify it to the level of php.

Share this post


Link to post
Share on other sites
If you download install and experiment with them, eventually you will understand through usage. There are no magic books or articles which can explain. It will take some doing but you will learn what you need through doing it.

Share this post


Link to post
Share on other sites
Quote:
Original post by speciesUnknown
If you download install and experiment with them, eventually you will understand through usage. There are no magic books or articles which can explain. It will take some doing but you will learn what you need through doing it.


Thanks. Downloading them is the easy part. Just finding out what to download. and How to set it up. That would take some doing. I have to try and find some help on this.

Thanks


Share this post


Link to post
Share on other sites

This topic is 3751 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.

Guest
This topic is now closed to further replies.
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!