I want an automatic BCC in my mail and my problem is:
How do I find out if the Item is of instance,MailItem (Can be CalendarItem also)?
This is what I have so far:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim Tmp As MailItem
If item <what to write here?> MailItem Then
Set Tmp = Item
End If
In any normal language you would do
if (item instanceof MailItem) {...
but how is it done in VBScript ???
Any help greatly appreciated!!!
Roger
How do I find out if the Item is of instance,MailItem (Can be CalendarItem also)?
This is what I have so far:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim Tmp As MailItem
If item <what to write here?> MailItem Then
Set Tmp = Item
End If
In any normal language you would do
if (item instanceof MailItem) {...
but how is it done in VBScript ???
Any help greatly appreciated!!!
Roger