Read Receipt MS Outlook
-
Friday, March 16, 2012 11:21 PM
I am trying to receive confirmations if a user read or deleted an email. Also, I would like to capture if the email was delivered. I have the delivery receipt working, but the read receipt is not working. The email accounts are used on a MS Exchange Server 2010. I am submitting my code. Thanking you in advanced for any help.
PrivateSub Button1_Click(ByVal senderAs System.Object,ByVal e As System.EventArgs)Handles Button1.Click
Try
Dim displaymessageAs Boolean
Dim objOutlookAs Outlook.Application
Dim objOutlookMsgAs Outlook.MailItem
Dim objOutlookRecipAs Outlook.Recipient
' Create the Outlook session.
objOutlook = CreateObject("Outlook.Application")
' Create the message.
objOutlookMsg = objOutlook.CreateItem(Outlook.OlItemType.olMailItem)
With objOutlookMsg
' Add the To recipient(s) to the message.
objOutlookRecip = .Recipients.Add("johndoe@yahoo.com")
.ReadReceiptRequested = True
'set delivery receipt
.OriginatorDeliveryReportRequested = True
' Set the Subject, Body, and Importance of the message.
.Subject = "This is a test"
.Body = "This is a test." & vbCrLf & vbCrLf
objOutlookRecip.Resolve()
.Save()
.Send()
End With
objOutlook = Nothing
Catch exAs Exception
MsgBox(ex.ToString)
End Try
End Sub
EndClass
Quanny
All Replies
-
Saturday, March 17, 2012 1:37 AM
Is recipient's mailbox actually configured to send read receipts?
Can you check in "Options | Mail | Tracking | For any message received that includes a read receipt request"?
Dmitry Streblechenko (MVP) http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.2 is now available!
-
Monday, March 19, 2012 8:56 PMYes, it is.
Quanny
-
Tuesday, March 20, 2012 7:09 AMAnswerer
Hi,
as I remember, read receipts could be filtered out by:
A: Firewall
B: Exchangeserver
Are the Emails transmittet inside the Organization, or via Internet (SMTP)
When SMTP, can you check the Email-Header on a Recipient side if the Info is in there?
From: "Test User" someuser@somedomain.xx
To: "Other User" <receipient@somedomain.xx>
Read-Receipt-To: "Test User" <someuser@somedomain.xx>
Disposition-Notification-To: "Test User" <someuser@somedomain.xx>
Subject: Read Receipt Header TestGreets - Helmut
Helmut Obertanner [http://www.obertanner.de] [http://www.outlooksharp.de]
-
Tuesday, March 20, 2012 5:48 PMIt was the firewall. It is working now. However, to answer you questions, it is inside the organization. Yes, the email - header is in there. My other question is how do you determine if the email was deleted?
Quanny
-
Wednesday, March 21, 2012 6:49 AMAnswerer
Hi Quanny,
when it's only for Emails inside the Organization, then you could create an Eventsink on the Exchangeserver as far as I know.
For external Emails I think there is no such Option.http://www.codeproject.com/Articles/5673/Developing-Managed-Event-Sinks-Hooks-for-Exchange
If all Users have an AddIn, I think it's possible to catch the Item-Delete using Dmitris Redemption Library?
Not sure - Dmitri - is it possible?Hope this helps,
Greets - Helmut
Helmut Obertanner [http://www.obertanner.de] [http://www.outlooksharp.de]
- Marked As Answer by Bruce SongModerator Wednesday, April 04, 2012 6:42 AM
-
Wednesday, March 21, 2012 6:52 AMIt all depends on where and how the message is deleted. What is the exact scenario?
Dmitry Streblechenko (MVP) http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.2 is now available!

