Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp.net read/delivery receipts

Status
Not open for further replies.

RLK1983UK

Technical User
Apr 17, 2007
24
GB
Hi, I don't know much about asp.net, but I have question that I need answering, so I hope you can help.

can Delivery Receipts on email be written into the code?
I am aware that read receipts can be done, along with email tracking, but I need to know if delivery receipts can be done also.

many thanks in advance
Ria
 
I believe there is a setting in MailMessage:

Code:
MailMessage msg = new MailMessage();

msg.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;

You may also need to add a couple of extra headers to the email:

Code:
msg.Headers.Add("Disposition-Notification-To", sender);
msg.Headers.Add("Return-Path", sender);

sender being a String variable.

Hope this helps a little.

Regards, Daniel.
 
I am being told by a development guy who is doing work for our company that unless we upgrade to the latest version of aspnet email this cannot happen.

is this the case?

thanks
 
Well the "latest" would be .NET 3.5 but that's currently in Beta, so the most current release would be .NET 2.0 i'd imagine - and as far as I know, this feature is supported in .NET 2.0.

As far as I can tell, as long as you have the proper namespace in your using declarations it shoudl work in .NET 2.0 (System.Net.Mail).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top