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
Your ISP could be blocking the secure SMTP port.
You could try to the same in Thunderbird and verify that the port is open first.