How to access Outlook mail using ASP.NET?

I am trying to write an asp.net application (using C #) that accesses an Outlook mailbox and displays messages. I searched on google but could not find useful information, any help is appreciated?

+4
source share
4 answers

If you use Exchange, you can use Exchange Web Services to read emails.

See here

+2
source

You should be aware that Outlook is running on the user's local computer, and ASP.NET is running on some server, and your server-side ASP.NET code cannot use local Outlook data.

AFAIK, just to do something like this, will create Outlook, which will export all letters to an ASP.NET application.

+4
source

Be very careful not to try to access Outlook on the server side using automation interfaces. All Microsoft Office desktop applications are recorded for launch by an interactive user during the process with the message pump, and all synchronization occurs through the user interface. When you run them in a multi-threaded environment like ASP.NET, terrible things happen. If you're lucky, the app will just crash.

If you're out of luck, you may suffer from data corruption, accidental crashes in unrelated codes, and all other things that happen when an application corrupts memory.

You can also violate your license if users who access the Office application through your website do not have an individual license to use the application on their desktop.

+2
source

You cannot connect to Outlook through C # (ASP.NET), but you can connect to your mail server through POP3 / IMAP to read mail.

IMAP Client Library Using C #

0
source

Source: https://habr.com/ru/post/1338728/


All Articles