IMAP + TLS/SSL 与 Synapse?
我目前正在尝试向软件添加使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我自己刚刚完成此操作后,我可能建议您按照 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.
mfw 是正确的,但这里有一个更清晰、更最新的答案。
转到 skamradt 所说的页面并下载“二进制文件”ZIP。从其 Bin 文件夹中,将这些文件复制到 EXE 文件夹中:
在 DPR 中,添加
对于 GMail / 端口 587:
对于其他 SMTP 服务器 / 端口 465:
这也可能适用于 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:
In your DPR, add
For GMail / port 587:
For other SMTP servers / port 465:
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)
我建议使用 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
您的程序中需要这些库:
You need these libraries in your program: