Sign in to follow this  
Mark86

Outlook 2010, automaticallly BCC yourself - Exceptions

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

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

    There are no registered users currently online