How to automatically forward a mail in outlook

To automatically forward a mail in Outlook, you can use the "Rules" feature. Here's a step-by-step guide:

Method 1: Using the "Rules" feature

  1. Open Outlook and go to the "Home" tab in the ribbon.
  2. Click on the "Rules" button in the "Move" group.
  3. Click on "Manage Rules & Alerts" in the drop-down menu.
  4. Click on "New Rule" in the "Rules and Alerts" window.
  5. Select "Start from a blank rule" and click "Next".
  6. Choose "Move messages from someone to a folder" or "Forward it to people or distribution list" depending on your preference.
  7. Click "Specify Names" and enter the email address or name of the person you want to forward the mail to.
  8. Click "OK" to save the rule.
  9. Name the rule (e.g., "Forward emails from [sender's name]") and click "Finish".

Method 2: Using a macro

  1. Open Outlook and go to the "Developer" tab in the ribbon (if you don't see it, go to "File" > "Options" > "Customize Ribbon" and check the box next to "Developer").

  2. Click on the "Visual Basic" button in the "Code" group.

  3. In the Visual Basic Editor, click "Insert" > "Module" to insert a new module.

  4. Paste the following code into the module:

    Sub ForwardEmails()
     Dim olApp As New Outlook.Application
     Dim olMail As MailItem
    
     For Each olMail In olApp.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items
         If olMail.Subject Like "Your search criteria here" Then
             olMail.Forward
             Set olMail = Nothing
         End If
     Next olMail
    End Sub
  5. Replace "Your search criteria here" with the subject or sender you want to forward emails from.

  6. Click "Run" to run the macro.

Tips and Variations

Remember to test your rule or macro to ensure it's working as expected before relying on it to forward emails automatically.