Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically use Gmail to receive e-mail?

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.

like image 831
FlySwat Avatar asked Dec 04 '08 21:12

FlySwat


People also ask

Can I receive email through Gmail domain?

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.

Is there an API for Gmail?

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.


1 Answers

Use Gmail with IMAP.

like image 168
Nathan Avatar answered Nov 07 '22 15:11

Nathan