How make a program in c++ that send email?

Hi, i wanted make a program in c++ for to the send e-mail with messagens of type:
"Sorry, i cannot to go in your room today!" for email of yahoo or gmail. Have code of the program?
I'd make a simple PHP webpage that takes HTTP POST parameters and puts them through the mail function. You can send your POST data to the webpage from your C++ program using WinINet, so:
1
2
3
#include <windows.h>
#include <wininet.h> //make sure to pass the -lwininet parameter to your compilier
//.... 
Topic archived. No new replies allowed.