Jump to content
groovyPost Forums

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?




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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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

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