Programmaticly使用Gmail来接收电子邮件? [英] Programmaticly use Gmail to receive e-mail?

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

问题描述

我想用C#程序轮询Gmail帐户,并自动下载新邮件。我知道你可以用gmail作为出站SMTP服务器,但有什么办法来访问发送到该帐户的新邮件?

I'd like to use a C# program to poll a gmail account and automatically download new messages. I know you can use gmail as an outbound SMTP server, but is there any way to access new messages sent to the account?

编辑:感谢您​​的反馈迅速....所以我有两个选择,POP或IMAP。

Thanks for the rapid feedback....so I have two options, POP or IMAP.

哪一个我应该使用?为什么?

Which one should I use? And why?

编辑#2:看起来像IMAP允许我不必轮询。貌似要走的路。

EDIT #2: Looks like IMAP allows me to not have to poll. Looks like the way to go.

推荐答案

使用 Gmail的使用IMAP

这篇关于Programmaticly使用Gmail来接收电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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