接收电子邮件通知(Exchange 2007) [英] Receive Email Notification (Exchange 2007)

查看:129
本文介绍了接收电子邮件通知(Exchange 2007)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望从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.

基本上,我想从ASP.NET发送带有交货收据的电子邮件,接收已发送的通知,然后更新数据库以记录该电子邮件实际上已收到... Windows Service或其他方式.

Basically I want to send an email with a delivery receipt from ASP.NET, receive the delivered notification and then update my database to note that the email was actually received... Windows Service or some other way.

我处于封闭环境中-有问题的电子邮件仅在内部升级到Exchange 2007的过程中内部发送给经理和其他内部用户,全部使用Exchange.

I'm in a closed environment - in that the emails in question are only sent internally to manager and other internal users, all using exchange - in the process of upgrading to Exchange 2007.

尽管我可以做一些假设,因为我可以处理ASP.NET在发送电子邮件时不引发任何异常,但是我希望更大的放心电子邮件已发送,因此,如果我没有收到邮件通知,然后如果在一定时间内未收到传递的通知,我可以尝试重新发送.

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.

我愿意接受任何建议,理想情况下,它可以在ASP.NET应用程序或控制台应用程序中简单地接收通知,但是如果让Exchange 2007在文件夹中转储文件,我可能会处理,尽管并不理想.

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.

我听说过Exchange 2007具有API,但是我对它的经验和知识为零,所以正确方向的指针将是很好的.

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.

推荐答案

通知将发送到电子邮件中指定为发件人的邮箱,因此您必须监视此邮箱的更改.您可以不定期轮询该邮箱,也可以使用推/拉通知将Exchange更改通知给Exchange服务器.

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.

使用EWS托管API访问邮箱: EWS托管API-下载: http://www.microsoft.com/download/en/details.aspx?id=13480 EWS托管API-SDK: http://msdn. microsoft.com/en-us/library/dd633710(v=exchg.80).aspx

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

如果需要,这还将使您开始使用拉动通知. 推送通知更加复杂,但是您可以将我的CodePlex项目中的代码用于此目的: http://exchangenotification.codeplex.com/.

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/.

这篇关于接收电子邮件通知(Exchange 2007)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆