How do I receive mail from Gmail within my ASP.NET application? Is there a Gmail API?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Google allows one to enable IMAP support on their GMail account. Then you can use an IMAP library to access the inbox (i.e. read (mark) messages, delete messages etc.)
Of course, you don’t have to use a library. You could implement your own IMAP client but a library will make it a lot easier for you.
Here are a couple of possible IMAP libraries for .NET:
interimap.codeplex.com/
http://www.rebex.net/mail.net/tutorial-imap.aspx
As @Douglas suggested, of course, IMAP need not be your only option. If you have a preference for POP3 you could just as well use a POP3 library.