Our anti-spam provider wants all false-negatives forwarded such that they can be run through their heuristic and linguistic algorithms to improve their capture rate. I was able to cobble together a script (works) and create a toolbar click (works) from various snippets of code. The problem is that the forward contains the default signature for forwards / replies (which they don't want to see). I've beaten my head against the wall trying to have the script to use a custom form (without a signature) to no avail. The signature is always there. Here's a copy of the script I'm using.
Sub SPAM()
Dim objMail As Outlook.MailItem
Set objItem = GetCurrentItem()
Set objMail = objItem.Forward
objMail.To = "spam@mx25.net"
objMail.Display
Set objItem = Nothing
Set objMail = Nothing
End Sub
Function GetCurrentItem() As Object
Dim objApp As Outlook.Application
Set objApp = Application
On Error Resume Next
Select Case TypeName(objApp.ActiveWindow)
Case "Explorer"
Set GetCurrentItem = _
objApp.ActiveExplorer.Selection.Item(1)
Case "Inspector"
Set GetCurrentItem = _
objApp.ActiveInspector.CurrentItem
Case Else
End Select
End Function
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
End Sub
If someone could advise as how to either use a "blank" form for the submission or how to strip the signature, that would be blessing.
Thank you.
Sub SPAM()
Dim objMail As Outlook.MailItem
Set objItem = GetCurrentItem()
Set objMail = objItem.Forward
objMail.To = "spam@mx25.net"
objMail.Display
Set objItem = Nothing
Set objMail = Nothing
End Sub
Function GetCurrentItem() As Object
Dim objApp As Outlook.Application
Set objApp = Application
On Error Resume Next
Select Case TypeName(objApp.ActiveWindow)
Case "Explorer"
Set GetCurrentItem = _
objApp.ActiveExplorer.Selection.Item(1)
Case "Inspector"
Set GetCurrentItem = _
objApp.ActiveInspector.CurrentItem
Case Else
End Select
End Function
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
End Sub
If someone could advise as how to either use a "blank" form for the submission or how to strip the signature, that would be blessing.
Thank you.