You will need an SMTP library (or write your own SMTP handling code if you want to go adventurous).
Just do a quick google for "C++ SMTP library" and you will find a few good options.
If this does not answer your question, please be more specific towards what you are trying to achieve.