Automated processing of an Email in C#

Posted by Christian Payne on Stack Overflow See other posts from Stack Overflow or by Christian Payne
Published on 2008-10-17T04:01:13Z Indexed on 2010/03/22 10:21 UTC
Read the original article Hit count: 574

Filed under:
|

Hi All,

Similar question as this one but for a Microsoft Environment.

Email --> Exchange Server -->[something]

For the [something] I was using Outlook 2003 & C# but it feels messy (A program is trying to access outlook, this could be a virus etc)

Microsoft.Office.Interop.Outlook.Application objOutlook = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.NameSpace objNS = objOutlook.GetNamespace("MAPI");
objNS.Logon("MAPIProfile", "MAPIPassword", false, true);

Is this the best way to do it? Is there a better way of retrieving and processing emails in a Microsoft environment???

© Stack Overflow or respective owner

Related posts about c#

Related posts about outlook-2003