This simple program can send mail through smtp servers with authentication. I has been written in Visual C++ and use mfc.
I use Csocketx class (can not find author) and Base64Coder class (from microsoft samples) to construct simple mailer.
Program also can send mail via smtp server without authentication (if you can find it :)).