Remove From, Sent, To, Subject from body of email when message is autoforwarded from a certain sender RRS feed

  • Question

  • I auto-forward various reports to people in my org. I would like to remove "FW:" from the subject of the email, as well as the entire lines for "From:...", "Sent:.....", "To:...." and "Subject...." so that the first sentence of the email body renders as the subheader in the main inbox. This script removes "FW" from the email subject when I forward, but it doesn't work in an auto-forward rule. Any ideas for what I should do?

    Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
        Dim strSubject As String
        If InStr(Item.Subject, "FW") > 0 Then
              strSubject = Replace(Item.Subject, "FW:", "", vbTextCompare)

        End If
        Item.Subject = Trim(strSubject)
    End Sub

    Tuesday, November 24, 2020 4:42 AM