Does “System.Net.Mail.DeliveryNotificationOptions” only work with Exchange?

给你一囗甜甜゛ 提交于 2019-12-02 12:00:00

问题


We have an application that is running on a SharePoint 2010 server that sends an email. We (the sender) want to receive delivery notifications but we are unable to retrieve them on the live system.

I've set the System.Net.Mail.DeliveryNotificationOptions to OnSuccess | OnFailure | Delay and it is running fine on our internal test system. I receive the notifications in my inbox (which is the "from address" that I used). Internally we use Exchange 2007.

At the customer site with the same solution no notifications are received. They don't use Exchange for the email delivery from SharePoint but some other SMTP server.

Can it be that the delivery notificaiton option only works with MS Exchange? Or does it use a standard (well, it's Microsoft) that other mail servers also understand? The documentation doesn't mention any mail server requirements.


回答1:


Could you try adding a "Return-Receipt-To" address in case the mail server in use at the customer site requires it?

AFAIK, the .Net.Mail is using standard SMTP calls but not all SMTP servers are created equally....



来源:https://stackoverflow.com/questions/8800299/does-system-net-mail-deliverynotificationoptions-only-work-with-exchange

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!