Question

I have used the smtp class to send emails through code.

Can I use the classes in the .net framework to display emails received on a page without having to use something like exchange sdk?

How would I go about using gmail pop and smtp server information in .net web apps (with the .net classes) to send and receive email?

Was it helpful?

Solution

You cannot retrieve email from a remote server in .net without any 3rd party libraries.

.Net only includes SMTP support, for POP and IMAP you must use another library. (or roll your own.)

BTW this question applies to any mail server/service not just gmail.

OTHER TIPS

Yes, it's possible. You'll probably find it easier to use one of the many third-party components which are available and encapsulate much of the logic you would otherwise need to develop.

I like Chilkat's email component. They provide an online example showing how to use their component to access a Gmail inbox via POP3. They also have an IMAP component which you might find useful.

Read this

How to POP3 in C#

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top