468,720 Members | 1,559 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,720 developers. It's quick & easy.

Using C# or VB.NET to access a remote Exchange mailbox and create appointments

Hello all:

I'm working on a non-web-based (darn it...) application that will be set up as a scheduled task on an Exchange server to run against a mailbox 2-3 times per day. What the app needs to do is read messages in the mailbox, then create appointment items based on filtering the subject line and parsing text from the message body (which will be in HTML format). I have old VBScript that will create the appointment items, set them to a color, and parse the text; what I need to do is understand how to access the correct mailbox and either read or retrieve the messages, then move the messages from the inbox to a different mail folder.

So, again, what I need is the code to do the following:

1) select the correct mailbox (obviously, an Exchange server contains hundreds or thousands of them)
2) iterate through the items in the mailbox and filter on the subject line
3) parse the message body to get crucial bits of information
4) create an Appointment item based on those bits of information that have been retrieved
5) move the read message to another inbox folder.

Forgot to mention... I'd like to do this in C# if possible, but I can write either C# or VB.NET; but I'm limited to using the 1.1 framework at present.

Thanks!
Jan 10 '08 #1
4 17160
RedSon
5,000 Expert 4TB
Hello all:

I'm working on a non-web-based (darn it...) application that will be set up as a scheduled task on an Exchange server to run against a mailbox 2-3 times per day. What the app needs to do is read messages in the mailbox, then create appointment items based on filtering the subject line and parsing text from the message body (which will be in HTML format). I have old VBScript that will create the appointment items, set them to a color, and parse the text; what I need to do is understand how to access the correct mailbox and either read or retrieve the messages, then move the messages from the inbox to a different mail folder.

So, again, what I need is the code to do the following:

1) select the correct mailbox (obviously, an Exchange server contains hundreds or thousands of them)
2) iterate through the items in the mailbox and filter on the subject line
3) parse the message body to get crucial bits of information
4) create an Appointment item based on those bits of information that have been retrieved
5) move the read message to another inbox folder.

Forgot to mention... I'd like to do this in C# if possible, but I can write either C# or VB.NET; but I'm limited to using the 1.1 framework at present.

Thanks!
Have you searched MSDN?

http://msdn2.microsoft.com/en-us/lib...67(VS.71).aspx
Jan 10 '08 #2
Have you searched MSDN?

http://msdn2.microsoft.com/en-us/lib...67(VS.71).aspx
Thanks for the link. I'll delve into it; but I will say, I've done quite a bit of searching in MSDN, and usually they are good at giving very basic, impractical examples, and never getting into real-world scenarios that use deeper methods and properties, like I will need to for this.

I would still appreciate more feedback on this issue. Thanks.
Jan 14 '08 #3
My requirement is similar can anybody help me out?
Apr 28 '10 #4
I think that the solution given here might be what you are looking for:

http://www.independentsoft.de/webdav...pointment.html
Jan 15 '11 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Manuel Krummenacher | last post: by
4 posts views Thread by Noonan, Derek | last post: by
6 posts views Thread by Gawel | last post: by
reply views Thread by dfo | last post: by
reply views Thread by arjen1984 | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Oskars | last post: by
9 posts views Thread by bryonone | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.