connect to an Email Server without using the Outlook 14.0 library RRS feed

  • Question

  • I am building a service that connects to an email server, checks unread messages, and then stores information in a flat file.  However, the computer that this service is going to run on does not have outlook installed.  As a result, I don't have access to the Outlook 14.0 library, which is how most websites recommend connecting to an inbox.  Is there something in for connecting to an SMPT server without going through the outlook library?
    Thursday, October 15, 2015 5:56 PM


  • Hi,

    It depends on the mail server.

    All modern mail servers understand IMAP4 protocol, and you can easily find .NET libraries to work with IMAP protocol. Since you are talking about Outlook, there is a chance that mail server that you want to connect is Microsoft Exchange Server. It does support IMAP too, but it is not default protocol (default is MAPI, that outlook uses).

    So if your mail server supports IMAP4, use it. If it is Microsoft Exchange Server that doesn't have IMAP4 enabled, and you don't have outlook installed, the only option is to use EWS (that should be enabled on exchange server too):

    Thursday, October 15, 2015 11:39 PM