Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Applications / April 2007

Tip: Looking for answers? Try searching our database.

How can I use C# to get/add calendar events and get/post e-mail?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Titan - 18 Apr 2007 02:52 GMT
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] - 18 Apr 2007 07:24 GMT
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

>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
[quoted text clipped - 5 lines]
> supported,
> etc.
Titan - 18 Apr 2007 14:48 GMT
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 - 19 Apr 2007 14:58 GMT
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] - 19 Apr 2007 16:19 GMT
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

> Henning,
>
[quoted text clipped - 4 lines]
> get/enter calendar events.  Ultimately it will be used to synchronize 2
> separate e-mail/scheduling systems in real-time.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.