I am using INDY to send Email using the SMTP client on port 25 with no problem.
Now I need to send an Email using a Gmail account and for that I need to use TLS.
Can anyone provide a simple sample on how to do that.
Thanks
I am using INDY to send Email using the SMTP client on port 25 with no problem.
Now I need to send an Email using a Gmail account and for that I need to use TLS.
Can anyone provide a simple sample on how to do that.
Thanks
This code works for GMail:
You not say what version of the Indy that you are using. For use TSL (last security changes in Hotmail/GMaill) you need to use Indy 10.
See description here.
Actually Y use this configuraction to send mails using GMail and it work correctly:
You need the SSL dll to make the IdSSLIOHandler work.
There is info at Indy SSL Website which redirect you to Fulgan Download Site
You can download one package suitable for your platform and then include the 2 dlls with your application. I myself are using that 2 dlls with the indy components to send mail through email for over 2 years. The only problem is the sending is quite slow.