Hello Everyone and thanks for your help in advance. I am working on a web form application that sends an email. I need to be able toobtain a read anddelivery receipt if possible. The email send correctly and when it is opened in Outlook, the reader is
prompted as to whether they want to send a read receipt. However, no delivery receipt is generated and I am not sure why. The email is sent through my Exchange server. When an email is sent through the same Exchange server with Outlook using the same from
and to addresses, a delivery receipt is generated. Here is my code:
Dim MailFrom As New MailAddress(MailFromAddress, MailFromDisplayName)
Dim MailTo As New MailAddress(MailToAddress, MailToDisplayName)
Dim message As New MailMessage(MailFrom, MailTo)
message.Bcc.Add(MailFromAddress)
message.Body = Signature
message.BodyEncoding = System.Text.Encoding.UTF8
message.SubjectEncoding = System.Text.Encoding.UTF8
message.IsBodyHtml = True
message.Priority = MailPriority.High
message.Subject = Subject
message.Headers.Add("Disposition-Notification-To", MailFromAddress)
message.Headers.Add("Return-Receipt-To", MailFromAddress)
It also appears the headers are correct to send a delivery notification:
Microsoft Mail Internet Headers Version 2.0
Received: from MY-PC ([server IP]) by mail.mydomain.com with Microsoft SMTPSVC(6.0.3790.4675);
Mon, 27 Aug 2012 21:02:41 -0400
Disposition-Notification-To: sender@mydomain.com
Return-Receipt-To: sender@mydomain.com
MIME-Version: 1.0
From: "Sender Display Name"
<sender@mydomain.com>
To: "Receiver Display Name"
<receiver@mydomain.com>
X-Priority: 1
Priority: urgent
Importance: high
Date: 27 Aug 2012 21:10:51 -0400
Subject: Subject
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
Return-Path: sender@mail.mydomain.com
Message-ID: <SERVER5K6qHN1gHrQ5Ne0000788a@mail.mydomain.com>
X-OriginalArrivalTime: 28 Aug 2012 01:02:41.0671 (UTC) FILETIME=[D340F170:01CD84B8]
Any help on this issue would be greatly appreciated.
Thanks for the response. I've seen these posts previosuly. Here are the email headers:
Microsoft Mail Internet Headers Version 2.0
Received: from MY-PC ([server IP]) by mail.mydomain.com with Microsoft SMTPSVC(6.0.3790.4675);
Mon, 27 Aug 2012 21:02:41 -0400
Disposition-Notification-To: sender@mydomain.com
Return-Receipt-To: sender@mydomain.com
MIME-Version: 1.0
From: "Sender Display Name"
<sender@mydomain.com>
To: "Receiver Display Name"
<receiver@mydomain.com>
X-Priority: 1
Priority: urgent
Importance: high
Date: 27 Aug 2012 21:10:51 -0400
Subject: Subject
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
Return-Path: sender@mail.mydomain.com
Message-ID: <SERVER5K6qHN1gHrQ5Ne0000788a@mail.mydomain.com>
X-OriginalArrivalTime: 28 Aug 2012 01:02:41.0671 (UTC) FILETIME=[D340F170:01CD84B8]
They appear to be correct. I'm wondering if there is some reason the Exchange Server is blocking the delivery. However, when sent from Outlook, the emails generate delivery notifications.
kmcnet
Participant
1090 Points
659 Posts
Repost - Delivery Receipt from Webform Email
Aug 28, 2012 01:47 AM|LINK
Hello Everyone and thanks for your help in advance. I am working on a web form application that sends an email. I need to be able toobtain a read anddelivery receipt if possible. The email send correctly and when it is opened in Outlook, the reader is prompted as to whether they want to send a read receipt. However, no delivery receipt is generated and I am not sure why. The email is sent through my Exchange server. When an email is sent through the same Exchange server with Outlook using the same from and to addresses, a delivery receipt is generated. Here is my code:
Dim MailFrom As New MailAddress(MailFromAddress, MailFromDisplayName) Dim MailTo As New MailAddress(MailToAddress, MailToDisplayName) Dim message As New MailMessage(MailFrom, MailTo) message.Bcc.Add(MailFromAddress) message.Body = Signature message.BodyEncoding = System.Text.Encoding.UTF8 message.SubjectEncoding = System.Text.Encoding.UTF8 message.IsBodyHtml = True message.Priority = MailPriority.High message.Subject = Subject message.Headers.Add("Disposition-Notification-To", MailFromAddress) message.Headers.Add("Return-Receipt-To", MailFromAddress)It also appears the headers are correct to send a delivery notification:
Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: Repost - Delivery Receipt from Webform Email
Aug 31, 2012 09:41 AM|LINK
Check this post if helps:
http://stackoverflow.com/questions/2538909/sending-mail-with-delivery-receipt
http://forums.asp.net/t/1367907.aspx
Feedback to us
Develop and promote your apps in Windows Store
kmcnet
Participant
1090 Points
659 Posts
Re: Repost - Delivery Receipt from Webform Email
Aug 31, 2012 05:40 PM|LINK
Thanks for the response. I've seen these posts previosuly. Here are the email headers:
Microsoft Mail Internet Headers Version 2.0 Received: from MY-PC ([server IP]) by mail.mydomain.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 27 Aug 2012 21:02:41 -0400 Disposition-Notification-To: sender@mydomain.com Return-Receipt-To: sender@mydomain.com MIME-Version: 1.0 From: "Sender Display Name" <sender@mydomain.com> To: "Receiver Display Name" <receiver@mydomain.com> X-Priority: 1 Priority: urgent Importance: high Date: 27 Aug 2012 21:10:51 -0400 Subject: Subject Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 Return-Path: sender@mail.mydomain.com Message-ID: <SERVER5K6qHN1gHrQ5Ne0000788a@mail.mydomain.com> X-OriginalArrivalTime: 28 Aug 2012 01:02:41.0671 (UTC) FILETIME=[D340F170:01CD84B8]They appear to be correct. I'm wondering if there is some reason the Exchange Server is blocking the delivery. However, when sent from Outlook, the emails generate delivery notifications.