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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Read Receipt to work with CDO

Status
Not open for further replies.

cj337

MIS
Nov 30, 2010
1
US
I looked around online and thought this should work but it doesn't, can anyone tell me what I am doing wrong?
Code:
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Test RR"
objMessage.From = """Me"" <cory@mydomain.com>"
objMessage.To = "cory@otherdomain.com"
objMessage.TextBody = "Test"
objMessage.Configuration.Fields.Item ("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 2
objMessage.Configuration.Fields.Item ("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = "192.168.1.1"
objMessage.Configuration.Fields.Item ("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25
objMessage.Configuration.Fields("urn:schemas:mailheader:return-receipt-to") = "cory@mydomain.com"
objMessage.Configuration.Fields.Update
objMessage.Send
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top