Discussion:
How can I use C# to get/add calendar events and get/post e-mail?
(too old to reply)
Titan
2007-04-18 01:52:04 UTC
Permalink
I have a requirement to transfer calendar entries from Exchange Server 2003
to another system and back when they are entered by a user. I also need to
copy e-mails back and forth. I would like to use C# .NET if possible.

What library/SDK can I use for this that supports .NET? I have seen
conflicting articles concerning this and whether managed code is supported,
etc.
Henning Krause [MVP - Exchange]
2007-04-18 06:24:12 UTC
Permalink
Hello,

do you want to catch changes in the Exchange server in realtime or do you
want to run a scheduled script?

Best regards,
Henning Krause
Post by Titan
I have a requirement to transfer calendar entries from Exchange Server 2003
to another system and back when they are entered by a user. I also need to
copy e-mails back and forth. I would like to use C# .NET if possible.
What library/SDK can I use for this that supports .NET? I have seen
conflicting articles concerning this and whether managed code is supported,
etc.
Titan
2007-04-18 13:48:04 UTC
Permalink
Henning,

I would like to capture this data in real-time. If this is not possible I
would then run a frequent script like every 5 minutes or so. Remember, the
updates need to go both ways. I need to be able to get/post e-mails and
get/enter calendar events. Ultimately it will be used to synchronize 2
separate e-mail/scheduling systems in real-time.
Titan
2007-04-19 13:58:09 UTC
Permalink
Is there a better place I should post this question? Someplace that I would
get a reply in a timely manner? I just want to know what Microsoft provides
to do what I need. Their online documentation gives me conflicting answers.
Henning Krause [MVP - Exchange]
2007-04-19 15:19:54 UTC
Permalink
Hello,

to do this realtime in both ways, you will need two sorts of event handler,
namely one on both ends. I don't know if the other mail system allows this,
but Exchange has the concept of event sinks.

To get notifications on multiple mailboxes, you'll have to implement a
synchronous store-wide event sink (OnSyncSave, OnSyncDelete) and catch the
modification. The technique to use is ExOleDB here.. probably with CdoEx on
top.

But you must be careful when implementing it, as the event is synchronous to
Exchange, meaning that it blocks the Exchange server. So I would suggest you
just use thread for notification and process the the changes in another
thread or process.

See http://www.infinitec.de/articles/exchange/managedeventsinks.aspx for
more info on this.

Best regards,
Henning Krause
Post by Titan
Henning,
I would like to capture this data in real-time. If this is not possible I
would then run a frequent script like every 5 minutes or so. Remember, the
updates need to go both ways. I need to be able to get/post e-mails and
get/enter calendar events. Ultimately it will be used to synchronize 2
separate e-mail/scheduling systems in real-time.
Loading...