PHP and Perl are pretty straight forward, however PHP is more streamlined and is what I'd recommend.

And with PHP what you'd do is set it to use GET requests, and have your C++ ap send to a url (perhaps code a tiny web browser into it), you'd have the PHP app just read what comes out and return a "your submission is succuessful" message.

I could have a php script configured for you, but I don't code for free ($75/hr) and I'd need to have all the fields known when I started... Not sure how long it'd take as it'd depend on how many fields and how you'd like the mail to look... It should be simple enough, especially with what is displayed to your "browser" (the built in web browser in your cpp app).
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner