D
Dan
Hi
I have written a Macro that automatically BCCs a copy of all my incoming
mail and sent mail to a particular address for backup. When it does this it
marks the mail as forwarded in my inbox. How can i stop this in the macro as
it is clearly confusing to have all my incoming mail marked as forwarded.
this is part of the code for inbox forwarding:
Private Sub myOlItems_ItemAdd(ByVal Item As Object)
If TypeName(Item) = "MailItem" Then
' Forward the item just received
Set myForward = Item.Forward
' Address the message
Set myBCC = myForward.Recipients.Add("xxx")
myBCC.Type = olBCC
'Don't save another copy
myForward.DeleteAfterSubmit = True
' Send it
myForward.Send
End If
End Sub
I have written a Macro that automatically BCCs a copy of all my incoming
mail and sent mail to a particular address for backup. When it does this it
marks the mail as forwarded in my inbox. How can i stop this in the macro as
it is clearly confusing to have all my incoming mail marked as forwarded.
this is part of the code for inbox forwarding:
Private Sub myOlItems_ItemAdd(ByVal Item As Object)
If TypeName(Item) = "MailItem" Then
' Forward the item just received
Set myForward = Item.Forward
' Address the message
Set myBCC = myForward.Recipients.Add("xxx")
myBCC.Type = olBCC
'Don't save another copy
myForward.DeleteAfterSubmit = True
' Send it
myForward.Send
End If
End Sub