E-mail reader

  • Thread starter Thread starter Rick Smit
  • Start date Start date
R

Rick Smit

Hi,

I need to write a Windows Service which checks (with a timer) e-mail in a
specific Exchange mailbox. Then if there is new email, download body, save
attachments. How can i do this with VB.NET or C#? Maybe somebody can post
some URL's or example code. I don't know how i can do such a thing.

Hope somebody can help me.

Kind regards,
Rick Smit
 
Hi Rick,

As you have probably discovered, you may be able to access your exchange box
using the POP3 protocol, depending on whether your organization has enabled
this kind of communication. If they have not, you will not be so lucky.
Your other options are: MAPI and WebDAV. MAPI is primarily a client
technology, so if you are accessing from a client machine (that is running
in the user's environment), then this is your best option.

If you are on a server, and you need to access the contents of a web folder,
you will need to use WebDAV. This is the same technology that Outlook Web
Access uses. If your server doesn't have OWA enabled for that particular
account, you won't be able to use WebDAV.

Note: while WebDAV may be appealing, there is nearly no documentation on
using it, and it has some difficulties that may catch you by surprise.
Microsoft has said that they may come out with a component (XSO) to make
this work better in the next version of Exchange, but we don't know when
this will appear.

Does this help?
--- Nick
 
I've been using evaluation copies of .Net email libraries Mail.Net and
Mime.Net from www.abderaware.com. They've been working well for me so far.

Tom Dacon
Dacon Software Consulting
 
They are very good products........

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 
Back
Top