English 中文(简体)
收到电子邮件通知(2007年交换)
原标题:Receive Email Notification (Exchange 2007)

I m looking to receive delivery notification from Exchange 2007, so that I can record whether an email has been received and resend if a set period elapses without an email being received.

基本上,我要寄发一份电子邮件,收发协会的送货收据。 NET,接收已发出的通知,然后更新我的数据库,以注意到电子邮件实际上已经收到...... 视窗服务或其他方式。

在封闭的环境中,我 m ——在升级到2007年交易所的过程中,有关电子邮件只寄给管理人员和其他内部用户,所有使用交换。

Whilst I can do some assumption, in that I can deal with ASP.NET throwing no exceptions when I send the email, however I want greater reassurance that the email has been delivered, so that if I don t receive a delivered notification then I can attempt to resend if a delivered notification hasn t been received within a certain period.

I m open to any suggestions, ideally something that can simple receive notifications in an ASP.NET application or Console App, but if it s a case of getting Exchange 2007 to dump a file in a folder I can potentially deal with that, though it s not ideal.

I ve heard Exchange 2007 has an API, but I have zero experience and knowledge of it, so a pointer in the right direction would be great.

问题回答

The notifications are sent to the mailbox specified as the sender in your emails, so you ll have to monitor this mailbox for changes. You can either poll that mailbox every once in a while or use push/pull notifications to be informed by the Exchange server about changes.

Use the EWS Managed API to access the mailbox: EWS Managed API - Download: http://www.microsoft.com/download/en/details.aspx?id=13480 EWS Managed API - SDK: http://msdn.microsoft.com/en-us/library/dd633710(v=exchg.80).aspx

This will also get you started with pull notifications, if required. Push notifications are more complicated, but you can use the code from my CodePlex project for this: http://exchangenotification.codeplex.com/.





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签