What do you think he did toad? He did post his whole code... don't try to answer questions if you don't understand them. Anyways, have you verified the adress is correct? Is it possible to use smtp with curl? Is your user and pass correct?
Once again you show you don't know what your talking about. Curl isnt c++ code. Curl is a program you call from the command line. No one said anything about compiling