This is what I used. This was for linux, however, it should technically work with windows
http://johnwiggins.net/jwsmtp/
Textbooks are and redirect forward
http://johnwiggins.net/jwsmtp/example1.html
Here is a copy and paste from a site showing ports and an SMTP server. Credit goes to john wiggins
jwsmtp::mailer mail(to.c_str( ),
from.c_str( ),
subject.c_str( ),
mailmessage.c_str( ),
smtpserver.c_str( ),
jwsmtp::mailer::SMTP_PORT,
false);
For authentication
mail.username("loginname");
mail.password("secret");
mail.authtype(mailer::PLAIN);
LOGIN PLAIN, LOGIN ,
PLAIN authtype