does any one had success with gmail smtp servers ? smtp.gmail.com to send emails from c++ code ? i know its using secure layer but i have no idea how to implement such one
This is what i used, It was for linux though, It should Technically work on windows
http://johnwiggins.net/jwsmtp/
The Tutorials are there and straigt forwards
http://johnwiggins.net/jwsmtp/example1.html
Here is a copy and paste from the site showing Ports and 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);
To Authenticate
mail.username("loginname");
mail.password("secret");
mail.authtype(mailer::PLAIN);
Currently only LOGIN and PLAIN authentication are supported, LOGIN by default, to set to PLAIN call the authtype function