473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 17617
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

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

Similar topics

2
by: nh_capricorn | last post by:
Hi, I am fairly new to .NET (coming from a Java background) and I am trying to port an application that I originally wrote in Java, to .NET / C#. My problem is that I cannot find a C# analog for...
0
by: Manuel Krummenacher | last post by:
Hello! I'm trying to develop an application to manage email-forwardings on an Exchange 2000 Server. Forwardings to external Addresses are requiring a contact with an Exchange account. I can...
2
by: Vincent Nguyen | last post by:
Hi, I have problem create exchange 2000 mailbox using CDOEXM in my Web Service application. The error I got was "Catastrophic failure". Here is the code that I have: DirectoryEntry user =...
4
by: Noonan, Derek | last post by:
Hi all, I'm reposting this, as I feel that it may have got buried. If anyone can help me then I'd really appreciate it... I am trying to read information from the GAL using C#. I am able to...
6
by: Gawel | last post by:
Hajo, I am searching solution for this proble over 2 days. I need to be able to create mailboxes on exchange server that is in domain. I need to do it outside of domain. What is more I can...
0
by: dfo | last post by:
Hi all! Have been trying for quite a while now to send cancellations to all attendees of an appointment using CDO. My code looks like this: string strIdURL =...
0
by: arjen1984 | last post by:
I am now working on C# with WebDAV on Exchange now to get appointments. When I work local on the domain where the server is, i can get the appointments no problem. When I work outside of it, i get an...
0
by: arjen1984 | last post by:
I want to create a mailbox-enabled mailbox. First i have used the toturial from microsoft: http://support.microsoft.com/kb/313114 Then my homeMDB string was incorrect. I saw an article , link:...
0
by: rage2001 | last post by:
I have a script (ASP) written which creates an account in AD, creates a folder on our file server and sets its permissions, and then creates a mailbox on the exchange server and sets its...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.