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?
EDIT: Thanks for the rapid feedback....so I have two options, POP or IMAP.
Which one should I use? And why?
EDIT #2: Looks like IMAP allows me to not have to poll. Looks like the way to go.
If you are a Gmail user, you can import domain email account to your Gmail inbox. You can use Gmail's Mail Fetcher feature to do this. This way, emails sent to your domain email will show up in your Gmail mailbox.
The Gmail API is a RESTful API that can be used to access Gmail mailboxes and send mail. For most web applications the Gmail API is the best choice for authorized access to a user's Gmail data and is suitable for various applications, such as: Read-only mail extraction, indexing, and backup.
Use Gmail with IMAP.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With