Best way to get notification in from gmail in C#, when new email is开发者_StackOverflow社区 received.
Have a look at the Gmail inbox feed. It's a bit lighter than using POP3 for this.
The Gmail Inbox Feed will output your Inbox as an XML document. You can use an RSS aggregator to view this, or you can consume the feed with your own app.
Note: This feed is only available for Gmail accounts on Google Workspace domains.
Take a look at Gmail API
You would need to look into using POP3 Libraries. If you are willing to use existing one, you can have a look at here.
You can use IMAP protocol and IDLE command.
Mail.dll supports this out-ot-the-box:
http://www.limilabs.com/blog/imap-idle
[Please note that this is a commercial product I created]
精彩评论