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

setting read receipt property 1

Status
Not open for further replies.

clientuser

Programmer
Apr 18, 2001
296
US
Is there a way in code to set the read receipt property in a outlook email message?
 
Hi!

A MailItem object has a ReadReceiptRequested property that can be set in VBA. Set this to true and you will get a read receipt.

hth

Jeff Bridgham
bridgham@purdue.edu
 
Hi!

Sure can:

Dim OutlApp As New Outlook.Application
Dim NewOutLMailItem As Object
Dim MailAttachments As Object
Dim MailRecipients As Object

Set NewOutLMailItem = OutlApp.CreateItem(olMailItem)
NewOutLMailItem.Save
NewOutLMailItem.Body = "Your message here"
NewOutLMailItem.Subject = "Your subject here"
Set MailRecipients = NewOutLMailItem.Recipients
MailRecipients.Add "YourAddress@YourServer"
MailRecipients.Add "NextAddress@YourServer"
Set MailAttachments = NewOutLMailItem.Attachments
MailAttachments.Add "YourAttachmentPath", olbyvalue
MailAttachments.Add "NextAttachmentPath", olbyvalue
NewOutLMailItem.ReadReceiptRequested = True
NewOutLMailItem.Send

This should get you what you want.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top