IMAP + TLS/SSL 与 Synapse?

发布于 2024-08-05 22:14:49 字数 266 浏览 6 评论 0原文

我目前正在尝试向软件添加使用 IMAP 列出用户收件箱中未读电子邮件的功能。在使用 Indy10 没有成功之后,我发现 Synapse 似乎更适合我的需要,但我找不到让它工作的方法。

我的问题是登录(因此我认为是 SSL 配置)。我找不到“FullSSL”、“Sock.SSL.SSLType”和“AutoTLS”的工作组合。每当我执行“Login()”函数时,它都会失败。

为了进行测试,你们中有人能够使用 Synapse 连接到 Gmail 的 IMAP 服务器吗?如果可以,如何连接?

I'm currently trying to add to a software the capability to list unread emails in the user's inbox using IMAP. After having no success at all using Indy10, I discovered Synapse which seemed better for what I needed, but I can't find a way to get it working.

My problem is with the login (thus I think with the SSL configuration). I can't find a working combination of "FullSSL", "Sock.SSL.SSLType" and "AutoTLS". Whenever I do the "Login()" function, it fails.

For the sake of testing, are any of you able to connect to Gmail's IMAP server using Synapse, and, if yes, how?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

べ繥欢鉨o。 2024-08-12 22:14:49

我自己刚刚完成此操作后,我可能建议您按照 Synapse HowTo 上的简单示例进行操作 http://synapse.ararat.cz/doku.php/public:howto:smtpsend

唯一的另一件事是您需要下载 openssl dll 并将其放在项目文件夹中。

恕我直言....我建议您还考虑查看 CleverComponents.com 的 IMAP4,它具有内置 SSL(不需要 OpenSSL,它有一些许可限制)并且是完全非阻塞套接字。

Having just done this myself, I might recommend that you just follow the simple example on the Synapse HowTo http://synapse.ararat.cz/doku.php/public:howto:smtpsend

The only other thing would be that you need to download the openssl dll's and place the in your project folder.

IMHO .... I would recommend that you also consider looking at CleverComponents.com at their IMAP4 with built in SSL (not requiring OpenSSL, which has some licensing restrictions) and is completely NON-Blocking sockets.

风筝有风,海豚有海 2024-08-12 22:14:49

mfw 是正确的,但这里有一个更清晰、更最新的答案。

转到 skamradt 所说的页面并下载“二进制文件”ZIP。从其 Bin 文件夹中,将这些文件复制到 EXE 文件夹中:

libssl32.dll
libeay32.dll

在 DPR 中,添加

uses ssl_openssl;

对于 GMail / 端口 587:

// support for upgrade session to TSL/SSL:
SMTP.AutoTLS := True ;
SMTP.FullSSL := False;

对于其他 SMTP 服务器 / 端口 465:

// support for TSL/SSL tunnel:
SMTP.AutoTLS := False;
SMTP.FullSSL := True ;

这也可能适用于 POP / 端口 995。 这就是我让 Synapse 发送邮件的方式安全地在 Delphi 7 + Synapse Release 40 中 (2012-04-23)

mfw is correct, but here's a clearer and more current answer.

Go to the page skamradt said and download the "Binaries" ZIP. From its Bin folder, copy these files into your EXE's folder:

libssl32.dll
libeay32.dll

In your DPR, add

uses ssl_openssl;

For GMail / port 587:

// support for upgrade session to TSL/SSL:
SMTP.AutoTLS := True ;
SMTP.FullSSL := False;

For other SMTP servers / port 465:

// support for TSL/SSL tunnel:
SMTP.AutoTLS := False;
SMTP.FullSSL := True ;

This might also work for POP / port 995. It's how I got Synapse to send mail securely in Delphi 7 + Synapse Release 40 (2012-04-23)

怪我闹别瞎闹 2024-08-12 22:14:49

我建议使用 AfterLogic 的 Mailbee IMAP ActiveX。
我在开发Gmail Keeper(一个Gmail备份软件)时做了研究,CleverComponnets的功能集看起来不错,但他们的支持非常糟糕,他们似乎已经停止了那个有前途的组件集,你可以尝试来回发送电子邮件给他们看看是否有什么自从我上次检查它们以来已经很长时间了,我确实希望他们继续他们的 VCL。

另一方面,afterlogic的支持确实很好,特别是考虑到合理的价格。

一键备份带有标签的Gmail到本地磁盘(支持备份调度)
http://GmailKeeper.com

I suggest Mailbee IMAP ActiveX from AfterLogic.
I did the research when developing Gmail Keeper (a Gmail backup software), CleverComponnets' feature set seems good but their support is very badm they seem discontinued that promising component set, you can try to email them back and forth to see if there is anything changed since it's been a long time since I checked them last time, I indeed wish they continue their VCL.

On the other hand, afterlogic's support is really good, especially when the reasonable price is considered.

One-click to backup Gmail with labels to local disk (supports backup scheduling)
http://GmailKeeper.com

醉生梦死 2024-08-12 22:14:49

您的程序中需要这些库:

libeay32.dll 
ssleay32.dll

You need these libraries in your program:

libeay32.dll 
ssleay32.dll
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文