Skip to main content

How to auto forward certain incoming emails with custom subject and body in Outlook?

To automatically forward certain incoming emails in Outlook, you can create a rule to achieve it. By default, when forwarding emails in Outlook, it uses the subject of the original email and adds the prefix FW:. If you want to customize the subject and body of forwarded emails yourself, the method in this tutorial can help you.


Auto forward certain incoming emails with custom subject and body in Outlook

You can combine an auto forward emails rule and a VBA script to automatically forward certain incoming emails with custom subject and body. Please do as follows.

Step 1: Create a VBA script in Outlook

Firstly, you need to create a VBA script in Outlook.

1. Launch your Outlook, press the Alt + F11 keys to open the Microsoft Visual Basic for Applications window.

2. In the left pane, double click Project1 > Microsoft Outlook Objects > ThisOutlookSession, and then copy the following VBA code into the ThisOutlookSession (Code) window.

VBA code: Forward emails with custom subject and body

Sub ChangeSubjectForward(Item As Outlook.MailItem)
'Updated by Extendoffice 2220615
  Dim xForward As MailItem
  Dim xOldSubject As String
  On Error Resume Next
  xOldSubject = Item.Subject
  Set xForward = Item.Forward
  With xForward
    .Subject = VBA.Replace(xForward.Subject, xOldSubject, "Custom Subject")  'Add the custom subject in double quotes
    .HTMLBody = "Custom Body" & xForward.HTMLBody   'Add the custom body in double quotes
    .Recipients.Add "Recipient’s Email Address"
    .Recipients.ResolveAll
    .Send
  End With
End Sub

Notes:

1) In the code, please change the “Custom Subject” and “Custom Body” to your own subject and body.
2) In the line .Recipients.Add "Recipient’s Email Address", you need to replace “Recipient’s Email Address” with the certain email address that will receive the forwarded emails.

3. Press the Alt + Q keys to close the Microsoft Visual Basic for Applications window.

Step 2: Create an auto forward emails rule to run the VBA script

Now you need to create an auto forward emails rule to run the script.

1. In the Mail view, click Home > Rules > Manage Rules & Alerts.

2. In the opening Rules and Alerts dialog box, click the New Rule button.

3. In the first Rules Wizard, select Apply rule on messages I receive in the Start from a blank rule section, and then click the Next button.

4. In the second Rules Wizard, you need to configure as follows.

4.1) Specify a condition to filter emails. In this case, I only need to forward emails from a certain sender, so I check the from people or public group check box in Step 1;
4.2) Click the underlined text in Step 2 to edit it;
4.3) Click the Next button. See screenshot:

5. In the third Rules Wizard, you need to configure as follows:

5.1) Check the run a script checkbox in Step 1;
5.2) Click the underlined text “a script” in Step 2;
5.3) In the pops up Select Script dialog box, select the script you created above and click the OK button;
5.4) Click the Next button.
Tips: If the “run a script” option is missing in your Rules Wizard, you can display it by following the method mentioned in this article: Restore missing Run A Script option in Outlook rule.

6. In the fourth Rules Wizard, you can select the exceptions if necessary, otherwise, click the Next button without any selections.

7. In the last Rules Wizard, you need to specify a name for the rule, keep the Turn on this rule box checked, and then click the Finish button.

8. In the popping up Microsoft Outlook alert box, click the OK button.

9. Then it returns to the Rules and Alerts dialog box, click the OK button to save the rule.

From now on, when receiving emails from this certain sender, the email will be forwarded to the specified recipient automatically.


Best Office Productivity Tools

Kutools for Outlook - Over 100 Powerful Features to Supercharge Your Outlook

🤖 AI Mail Assistant: Instant pro emails with AI magic--one-click to genius replies, perfect tone, multilingual mastery. Transform emailing effortlessly! ...

📧 Email Automation: Out of Office (Available for POP and IMAP)  /  Schedule Send Emails  /  Auto CC/BCC by Rules When Sending Email  /  Auto Forward (Advanced Rules)   /  Auto Add Greeting   /  Automatically Split Multi-Recipient Emails into Individual Messages ...

📨 Email Management: Easily Recall Emails  /  Block Scam Emails by Subjects and Others  /  Delete Duplicate Emails  /  Advanced Search  /  Consolidate Folders ...

📁 Attachments ProBatch Save  /  Batch Detach  /  Batch Compress  /  Auto Save   /  Auto Detach  /  Auto Compress ...

🌟 Interface Magic: 😊More Pretty and Cool Emojis   /  Boost Your Outlook Productivity with Tabbed Views  /  Minimize Outlook Instead of Closing ...

👍 One-click Wonders: Reply All with Incoming Attachments  /   Anti-Phishing Emails  /  🕘Show Sender's Time Zone ...

👩🏼‍🤝‍👩🏻 Contacts & Calendar: Batch Add Contacts From Selected Emails  /  Split a Contact Group to Individual Groups  /  Remove Birthday Reminders ...

Over 100 Features Await Your Exploration! Click Here to Discover More.

Read More       Free Download      Purchase
 

 

Comments (1)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thank you for explaining how I can forward an email with a custom subject and content.
I have a question; how should I adjust the script if I want more than one line of text with a blank line, for example:
Dear Jan,

Of course I'll come play football tomorrow

Greetings,

Kees
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations