从 C# 访问 Gmail 帐户
我尝试了在这里找到的一些代码:
我无法让它工作并得到以下错误:
连接尝试失败,因为连接方在一段时间后没有正确响应,或者建立的连接失败,因为连接的主机无法响应 209.85.227.109:995
我在所有 Gmail 帐户上都启用了 POP。
我可以使用第三方工具,例如 this侧边栏小工具,所以我认为端口 995 没有被阻止。
关于我下一步可以尝试什么有什么想法吗?
I've tried some code I found here:
I am unable to get it to work and get the following error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 209.85.227.109:995
I have POP enabled on all my Gmail accounts.
I can use third party tools like this sidebar gadget, so I don't think port 995 is blocked.
Any thoughts on what I can try next?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
请阅读以下文档:
Please take a read of the following document:
解决方案可以在这里找到:Reading emails from Gmail in C#
但在此之前,您需要配置 Gmail 设置以启用Imap 和第三方邮件客户端。
为此,您可以按照此页面中的步骤操作:如何为 Gmail 帐户启用 IMAP/POP3/SMTP?
The solution can be found here: Reading emails from Gmail in C#
But before this, you need to configure your Gmail setting to enable the Imap and third party mail clients.
To do so, you can follow the steps from this page: How to Enable IMAP/POP3/SMTP for Gmail Account?
您可以远程登录 209.85.227.109 995
并确保您看到空白屏幕。这可确保您的计算机能够连接 Gmail 服务器。请联系您的系统管理员以解锁端口 995 或 gmail smtp/pop 服务器。
You can telnet 209.85.227.109 995
and make sure that you get blank screen. This ensures that your computer is able to connect Gmail server. contact your system admin to unblock the port 995 or gmail smtp/pop server.
您还可以通过 RSS 源阅读邮件。
https://username:[电子邮件受保护]/mail/feed/atom
https://mail.google.com/mail/feed/atom/labelname
您还可以阅读带有特定标签的提要。
you can otherwise read your mail through RSS feeds.
https://username:[email protected]/mail/feed/atom
https://mail.google.com/mail/feed/atom/labelname
You can also read feeds with specific label.