Auto BCC in Outlook 2007 ?

I

InTaH

Hello,

I've spent most of the evening trying to run an AUTO BCC VB code in
Outlook 2007. I tried the same code in Outlook 2003 and it worked
beautifully, but it will not work in Outlook 2007 (presumably due to
the Trust Center or whatever).

Any ideas on how to automatically get every email to send a BCC copy
to the email address of your choice?

The code I used was:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As
Boolean)
Dim objMe As Recipient
Set objMe = Item.Recipients.Add("(e-mail address removed)")
objMe.Type = olBCC
objMe.Resolve
Set objMe = Nothing
End Sub


This code was taken from:
http://www.outlookcode.com/d/code/autobcc.htm

Thanks for any suggestions!
 
I

intah

I did check the security settings - I couldn't find anything that
could be preventing it from executing.

At one point, I tried something and when I checked the sent items
folder, the address of my choice HAD been added to the BCC, but the
server simply did not send the email to the BCCed address (only to
the TO address).

Also, how would I go about adding a break point?

Any other ideas/suggestions?

Thanks for taking the time to reply Michael!
 
M

Michael Bauer [MVP - Outlook]

Sorry, I couldn't test that earlier. I still have the Beta installed and
here it doesn't work at all. On sender site all seems to be ok but the BCC
doesn't get the message. Instead my To recipient gets the message twice.

Ken, do you know something about that?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am 09 Jan 2007 16:56:25 GMT schrieb int :
 
K

Ken Slovak - [MVP - Outlook]

Beats me, the code works perfectly here. All I did was change the Bcc
address to one of mine. I sent an email to my dog and it was Bcc'd to the
address I had selected.

To set a breakpoint you would place the cursor on the line where you want
the breakpoint set and use F9 to toggle the breakpoint.
 
I

intah

Thanks for the reply guys. I really appreciate it!

Just for anyone else reading in, I figured it out with the help of a
forum. All I needed to do was -- once I lowered the macro security
settings in Outlook 2007, I failed to restart Outlook when testing
it. That was the difference maker =/ Works beautifully now with the
exact code I posted!

Thanks for the info for breakpoints - could come in use in the
future =)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top