I want a simple C++ class that will have a function to send an email thru Google's Gmail service. It should have basic authentication and allow sending a formatted string as the text in addition to standard email features (to address, from address, subject, etc).
The project should include a sample executable that calls the class and sends the email.
The code should compile and run under GCC on Linux and Mingw GCC on Windows. Use of external libraries is permissible.