How do I send an email/text message in C++?

Instead of doing this in a Console Application, I figured since GUIs are more used, I'd do one with a GUI. Can anyone tell me what functions to MSDN or have a bit of source or anything that can help me? I'm new to C++ so I may not understand everything you say, sorry :( Thanks for your time though :)
Are you looking for help with the gui or the winsock functions?
The functions, like how to send. I think I can do the GUI, all I have to do is click on Win32 Application and drag and drop buttons, I hope xD

I'm using MS Studio Express Edition 2008 as my compiler/IDE. I've only done Console Applications before but I heard those are quite useless to start using GUIs :P
I am afraid that MFC or API does not provide you with email functions. Further more you need to use the socket facilities of your OS. I also think this topic belongs to Windows Programming?

If you have never used sockets, just look at this famous socket tutorial link: http://beej.us/guide/bgnet/ and this one especially for winsockets: http://tangentsoft.net/wskfaq/

Next step will be to look at SMTP protocol which is really easy to implement: RFC-2821 http://www.ietf.org/rfc/rfc2821.txt

If i scared you now, no panic. There are plenty of libraries for C++ freely available which take this part and provide you either some classes or simple functions for using SMTP or sockets. But I still recommend you to look into some socket issues, because they are good to know and pretty interresting.


Hope this helped

Maikel
Topic archived. No new replies allowed.