We’re permitted to request read receipt when sending Outlook emails. But someone even wishes that Outlook can auto request the read receipt when they send specific emails. This article will make it realized with Outlook VBA.
In general, if you want to request the read receipt, you have two means. One is to manually check the option “Request a Read Receipt” in the New Message window, like the following screenshot:
The other one is to enable “For all messages sent, request read receipt” under “Mail” tab in Outlook Options, shown as the image below:
However, many users would like to configure Outlook to request the read receipt automatically only when they send specific emails, such as depending on the mail subject or mail recipients and so on. Here we will introduce a method to achieve it with the help of Outlook VBA.
Auto Request Read Receipt When Sending Specific Emails
- At the very outset, launch Outlook and switch to “Developer” tab.
- Then click on “Visual Basic” button, which will bring out a new window,
- In the “Visual Basic” window, open “ThisOutlookSession” project and copy the following VBA codes into this project.
Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) If Item.Class = olMail Then RequestReciept Item End If End Sub Sub RequestReciept(NewMail As MailItem) Dim Addr As String Dim Subj As String 'Replace Addr & Subj with your own desired strings Addr = "email@example.com" Subj = "test" 'Specify the email recipients and subject If InStr(LCase(NewMail.To), Addr) > 0 And InStr(LCase(NewMail.Subject), Subj) Then NewMail.ReadReceiptRequested = True End If End Sub
- After that, you need to sign this code and change the macro settings to only enable digitally signed macros.
- Eventually you can have a try to ensure if the code can work normally.
- Click “New Email” button in Outlook main window.
- Then you can compose the email as usual, but select the recipients and fill in the subject according to your codes. In my instance, the recipients should include firstname.lastname@example.org, and the subject should contain “test”.
- Next click “Send” button.
- After sending the mail out, you can double click to open it. In its window, turn to “Developer” tab and hit “Design This Form”.
- After that, shift to “(All Fields)” label and select “All Mail fields”. Now you can scroll downward until locate the “Receipt Requested” field. You can check if the receipt is required or not.
Keep Cautious of Unknown Emails
Nowadays, malicious emails have become more and more rampant. Therefore, it is essential for all Outlook users to keep vigilant against all the suspected emails. In addition, it is also suggested to get hold of a robust Outlook damage fix tool. It will come to your rescue when you are trapped in desperate Outlook corruptions.
Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including repair SQL mdf file and outlook repair software products. For more information visit www.datanumen.com