Thanks. I guess I'll have to search google again (This is at least the twentieth time) but this time for how to handshake Gmail (or TLS).
Thanks again.
Thanks. I guess I'll have to search google again (This is at least the twentieth time) but this time for how to handshake Gmail (or TLS).
Thanks again.
I might not be a pro, but I'm usually right
The problem isnt with your code. Gmail, and most other email services block inbound port 25 traffic from dynamic IP's outside their local network. They do this to cut down on the spammers.
Do you know any API I can use to send mail through SMTP?
I searched Google a bit but all I found was shareware ones, and I can't pay $100 just for some libraries that I won't use more than once (I just program as a hobby)
I might not be a pro, but I'm usually right
Anyone know some libraries (preferably free) that can send mail using ESMTP (including the authentication)???
I might not be a pro, but I'm usually right
I played with gmail a while back using java. The TLS was absolutely necessary to get things going.
In java you could set the system property "mail.smtp.starttls.enable" to true. I do not know if there's a way to do something that easily in C++ or not, but it may be a good way to search for it.
Last edited by Vicious; 03-26-2008 at 03:25 PM.
What is C++?
Well, you might find an SMTP library that makes it that easy, but neither Java nor C++ are magic.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
There does exist a libESMTP: http://www.stafford.uklinux.net/libesmtp/
This library is used by esmtp, mutt, and a few other mailers. It can handle the TLS communications, but I haven't been able to get it working properly. In order to get the programs based on this lib to work with gmail, they say to get the signing certs from Thawte and put them in ~/.authenticate/ca.pem but still doesn't work for me.
The library should do fine for straight-up SMTP relay though an open-relay server, or non-TLS auth servers....but who does that these days?
Abda92 , please tell me, did you finally solved the problem with the TLS handshake ? what is the solution ?