How to auto reply with original email message in Outlook?
Normally, when we create a rule to auto rely the email out of office, but the original message in body will not be included. How could you auto rely the emails with original message in Outlook? This article, I will talk about a VBA code to help you finishing this job as quickly as possible in Outlook.
Auto reply emails when you out of office:
If you want to auto reply emails when you are busing or out of office, Kutools for Outlook's Auto Reply feature can help you to deal with the job as quickly as you need.
Kutools for Outlook: with more than 20+ handy Excel add-ins, free to try with no limitation in 60 days. Download and try the free trial now!
The normal Outlook rule can not help you to deal with job, but, with the following VBA code, you can finish this quickly and easily. Please do as this:
1. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.
2. In the Microsoft Visual Basic for Applications window, double click ThisOutlookSession from the Project1(VbaProject.OTM) pane to open the mode, and then copy and paste the following code into the blank module.
VBA code: Auto reply emails with original message:
Public WithEvents xlItems As Outlook.Items Private Sub Application_Startup() Set xlItems = Session.GetDefaultFolder(olFolderInbox).Items End Sub Private Sub xlItems_ItemAdd(ByVal objItem As Object) Dim xlReply As MailItem Dim xStr As String If objItem.Class <> olMail Then Exit Sub Set xlReply = objItem.Reply With xlReply xStr = "<p>" & "Hi, Your email has been received. Thank you!" & "</p>" .HTMLBody = xStr & .HTMLBody .Send End With End Sub
3. Then save and close the code window, close or restart the Outlook to make the VBA code take effect. Now, when you receive emails, Outlook will be send an auto reply with the original message as following screenshot shown:
Recommended Productivity Tools
- Complicated and repeated operations can be done a one-time processing in seconds.
- Forward multiple emails individually with one-click, and auto forward by rules.
- Auto CC/BCC every sending email and easy for customizing rules, and auto reply without requiring exchange server.
- Powerful junk emails filter, remove duplicate emails, reply with attachment, bunch of one-click operations, and so on...
- 60-day unlimited free trial. 60-day money back guarantee. 2 years free upgrade and support. Buy once, use forever.