Code for Sub to Request Delivery Receipt and Read Receipt

Posted on 2006-03-23
Last Modified: 2008-01-09
I have some code behind a button on my Form that performs some Outlook functionality.  What I need is the code to do 2 additional things which are currently done manually.  Currently the user checks in Outlook Request a Delivery Receipt for this message and Request a Read Receipt for this message.  How can i set this in code i.e.

MyMail.(Property or code to Request a Delivery Receipt for this message)
MyMail.(Property or code to Request a Read Receipt for this message)


****Code so far*********

On Error GoTo Err_Command5_Click
 Dim MyOutlook   As Outlook.Application
  Dim MyMail      As Outlook.MailItem
  Dim MyBodyText  As String
  Dim frm         As Form
  Dim ctl         As Control
  Dim varItem     As Variant
  Dim strSql      As String
  Dim myattachments    As Variant
  Dim lItemCount  As Long
  Dim mailStationery As String
  'send email with spreadsheet

  Set MyOutlook = New Outlook.Application
  Set MyMail = MyOutlook.CreateItem(olMailItem)
  MyMail.To = Text1
  MyMail.CC = ""
  MyMail.BCC = ""
  MyMail.BodyFormat = olFormatHTML
  MyMail.Subject = "All Managers"
  'MyBodyText = "Here is the document"
  'Set myattachments = MyMail.Attachments
  'myattachments.Add "C:\JetComp.doc"
  MyMail.SentOnBehalfOfName = "Review"
  'put the HTML code for the stationery to a variable and then assign
  'it to the HTMLBody
MyMail.Body = Text2
  'MyMail.HTMLBody = "<HTML><HEAD>My HTML Background</HEAD>" & _
    "<BODY bgcolor=Green></BODY></HTML>"

Question by:charming
    1 Comment
    LVL 92

    Accepted Solution

    Hi charming,

    With MyMail
        .ReadReceiptRequested = True
        .OriginatorDeliveryReportRequested = True
    End With



    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Suggested Solutions

    The first two articles in this short series — Using a Criteria Form to Filter Records ( and Building a Custom Filter ( — discuss in some detail how a form can be…
    A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
    In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
    In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now