Jump to content
groovyPost Forums

Outlook 2010, automaticallly BCC yourself - Exceptions


Mark86

Recommended Posts

I've just read the article "How to Automatically BCC in Outlook 2010", it was very helpful, I do however have one small question, when setting up a rule to automatically CC yourself in all outgoing email you've got the option to exclude this rule for particular recipients.

Is it also possible to add a piece of code to the Visual Basic code mentioned in the article (and below), so that you won't be BCC'ed when emailing particular recipients (for example if I send an email to a mailgroup at work which I'm a member of myself, I don't want the email to be BCC'ed to myself) Is this possible, and if so, could anyone tell me how?

 

Thanks!

 

Dim objRecip As Recipient
Dim strMsg As String
Dim res As Integer
Dim strBcc As String
On Error Resume Next

' #### USER OPTIONS ####
' address for Bcc -- must be SMTP address or resolvable
' to a name in the address book
strBcc = "SomeEmailAddress@domain.com"

Set objRecip = Item.Recipients.Add(strBcc)
objRecip.Type = olBCC
If Not objRecip.Resolve Then
strMsg = "Could not resolve the Bcc recipient. " & _
"Do you want still to send the message?"
res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _
"Could Not Resolve Bcc Recipient")
If res = vbNo Then
Cancel = True
End If
End If

Set objRecip = Nothing

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 5 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...