如何使用Gmail的SMTP和Indy 10发送电子邮件? [英] How do I send e-mail using Gmail's SMTP and Indy 10?

查看:283
本文介绍了如何使用Gmail的SMTP和Indy 10发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Delphi 2009和svn最新的Indy 10发送电子邮件使用SMTP,但它不适用于Gmail(Google Apps托管域)。当我尝试发送电子邮件时,我得到必须首先发出STARTTLS命令。

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".

我尝试了谷歌搜索,我发现了几个论坛和几个解决方案,但是他们都只是打了一些代码,或者只是说我需要一个OpenSLL DLL,到目前为止我不太清楚我需要什么。

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.

有人可以告诉你我需要哪个DLL,以及在TIdSMTP和TIdMessage对象中需要更改哪些DLL,以便通过Gmail的SMTP服务器发送电子邮件?

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?

另外,一个解释关于为什么这个认证是不同的,什么是DLL是非常受欢迎的。

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

推荐答案

也许 Marco可以帮助你... ...

Perhaps Marco can help you...

编辑:使用此链接源代码

这篇关于如何使用Gmail的SMTP和Indy 10发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆