How do I send e-mail using Gmail's SMTP and Indy 10?

本秂侑毒 提交于 2020-01-01 05:40:14

问题


I'm using Delphi 2009 and the lastest Indy 10 from svn to send e-mails using SMTP, but it doesn't work with Gmail (Google Apps hosted domain). When I try to send an e-mail I get "Must issue a STARTTLS command first".

I tried Googling about it and I found several forums and several solutions, but they all just bashed some code or just said I needed an OpenSLL DLL, which so far isn't very clear to me exactly what I need.

Can someone please tell exactly which DLL I need and what do I have to change in the my TIdSMTP and TIdMessage objects in order to send the e-mails through Gmail's SMTP server?

Also, an explanation about why this authentication is different and what the DLL is for is very welcome.


回答1:


Perhaps Marco can help you...

Edit: with this link to the source code.



来源:https://stackoverflow.com/questions/1589699/how-do-i-send-e-mail-using-gmails-smtp-and-indy-10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!