Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2008, 04:32 PM
fnaess fnaess is offline
Novice
Outlook: automatic BCC to another e-mail account for all sent messages
 
Join Date: Sep 2008
Posts: 6
fnaess is on a distinguished road
Default Outlook: automatic BCC to another e-mail account for all sent messages

Is there a way to set Outlook (2007) to automatically BCC all my outgoing e-mails to another e-mail address? I keep copies there...
Reply With Quote
  #2  
Old 09-10-2008, 05:25 PM
Matrix's Avatar
Matrix Matrix is offline Outlook: automatic BCC to another e-mail account for all sent messages Windows 10 Outlook: automatic BCC to another e-mail account for all sent messages Office 2010
Admin
 
Join Date: Jan 2005
Posts: 396
Matrix is on a distinguished road
Default

This requires a little programming. I will try to make it clear.

Select the menu "Tools || Macros || Visual Basic Editor", browse "Project1" in the left to "ThisOutlookSession", Select those two selections in the right to "Application" and "ItemSend" respectively.

Now replace the code
Quote:
Private Sub Application_ItemSend...
...
End Sub
With the following code
Quote:
Private Sub Application_ItemSend(ByVal Item As Object, _
Cancel As Boolean)
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 = "test@test.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
End Sub
Make sure you replace the email address with yours. Close the editor.

Please let me know if it's not clear enough, I can make a screenshot.
Reply With Quote
  #3  
Old 09-10-2008, 05:42 PM
fnaess fnaess is offline
Novice
Outlook: automatic BCC to another e-mail account for all sent messages
 
Join Date: Sep 2008
Posts: 6
fnaess is on a distinguished road
Default

Kevin:
It works! Many thanks,
Fred
Reply With Quote
  #4  
Old 09-11-2008, 09:02 AM
fnaess fnaess is offline
Novice
Outlook: automatic BCC to another e-mail account for all sent messages
 
Join Date: Sep 2008
Posts: 6
fnaess is on a distinguished road
Default

One more question: I note that this only works until Outlook is closed--no longer works when Outlook is re-opened. Any way to make it work each time Outlook is opened?
Thanks...
Reply With Quote
  #5  
Old 09-11-2008, 09:09 AM
Matrix's Avatar
Matrix Matrix is offline Outlook: automatic BCC to another e-mail account for all sent messages Windows 10 Outlook: automatic BCC to another e-mail account for all sent messages Office 2010
Admin
 
Join Date: Jan 2005
Posts: 396
Matrix is on a distinguished road
Default

Do it again, answer yes to any save question when you quit Outlook.

Or

simply do "File || Save VbaProject.otm" in Visual Basic Editor after you add the code.
Reply With Quote
  #6  
Old 09-12-2008, 09:43 AM
fnaess fnaess is offline
Novice
Outlook: automatic BCC to another e-mail account for all sent messages
 
Join Date: Sep 2008
Posts: 6
fnaess is on a distinguished road
Default

Hmmm...it works as long as I keep the VBE window open. When I close it, it doesn't work. When I re-open the VBE window, and select "ThisOutlookSession", the code you gave me re-appears, and I no longer get a "Save...?" option when I close out of VBE. ARRGGHH!
Reply With Quote
  #7  
Old 09-12-2008, 10:02 AM
Matrix's Avatar
Matrix Matrix is offline Outlook: automatic BCC to another e-mail account for all sent messages Windows 10 Outlook: automatic BCC to another e-mail account for all sent messages Office 2010
Admin
 
Join Date: Jan 2005
Posts: 396
Matrix is on a distinguished road
Default

That's wierd. As long as the code was saved with your own email address, it should always work.

If you close everything and reopen Outlook and VBE, is the code there?
Reply With Quote
  #8  
Old 09-12-2008, 10:12 AM
Matrix's Avatar
Matrix Matrix is offline Outlook: automatic BCC to another e-mail account for all sent messages Windows 10 Outlook: automatic BCC to another e-mail account for all sent messages Office 2010
Admin
 
Join Date: Jan 2005
Posts: 396
Matrix is on a distinguished road
Default

If you have done everything above correctly, it should work.

Anyway, if it's important to you, and you can't make it work, here is a commercial software to do this, personally I don't think it's worth it.

http://www.sperrysoftware.com/Outlook/Always-BCC.asp
Reply With Quote
  #9  
Old 09-12-2008, 05:28 PM
fnaess fnaess is offline
Novice
Outlook: automatic BCC to another e-mail account for all sent messages
 
Join Date: Sep 2008
Posts: 6
fnaess is on a distinguished road
Default

I've tried re-starting the computer, re-starting Outlook, and re-opening VBE. The code is still there...but now the BCC's are no longer going out.
I'll take a look at the commercial software you've recommended...or start using Thunderbird for e-mail--it has the BCC option in settings.
Thanks again--you've been very patient :-)
Reply With Quote
  #10  
Old 12-17-2008, 10:59 AM
guiwells guiwells is offline
Novice
 
Join Date: Dec 2008
Posts: 1
guiwells is on a distinguished road
Default

Hello Kevin,

I am trying to do the same, I did all but nothing happens.
I am trying to add the salesforce email adress on all our company users.
Our Outlook is in spanish, is there a different code for this version?

Thanks
Reply With Quote
  #11  
Old 01-06-2009, 08:53 AM
GeorgeCarvill GeorgeCarvill is offline
Novice
 
Join Date: Jan 2009
Posts: 2
GeorgeCarvill is on a distinguished road
Default Forwards and Replies

This is a nice macro and works well for me -- for original messages. But it does not appear to work for forwards or replies.

How can I change that?
Reply With Quote
  #12  
Old 01-06-2009, 09:23 AM
GeorgeCarvill GeorgeCarvill is offline
Novice
 
Join Date: Jan 2009
Posts: 2
GeorgeCarvill is on a distinguished road
Default Oops

Quote:
Originally Posted by GeorgeCarvill View Post
This is a nice macro and works well for me -- for original messages. But it does not appear to work for forwards or replies.

How can I change that?
Actually, it looks like the forwards and replies ARE coming, just coming later for some reason.
Reply With Quote
  #13  
Old 01-15-2009, 02:58 AM
BirdieMan BirdieMan is offline
Novice
 
Join Date: Jan 2009
Posts: 1
BirdieMan is on a distinguished road
Default Outlook 2003

Matrix, the script doesn't seem to work on Outlook 2003. Does it only work with 2007? I copied and pasted the script and changed the email address. When I send a message, there is no BCC. I ever commented out the "On Error Resume Next" to see if there would be an error, but there was not.
Reply With Quote
  #14  
Old 01-15-2009, 05:41 AM
Matrix's Avatar
Matrix Matrix is offline Outlook: automatic BCC to another e-mail account for all sent messages Windows 10 Outlook: automatic BCC to another e-mail account for all sent messages Office 2010
Admin
 
Join Date: Jan 2005
Posts: 396
Matrix is on a distinguished road
Default

Quote:
Originally Posted by BirdieMan View Post
Matrix, the script doesn't seem to work on Outlook 2003. Does it only work with 2007?
I did test it on Outlook 2003, never used 2007.
Reply With Quote
  #15  
Old 07-03-2009, 11:40 AM
Mohammad Mohammad is offline Outlook: automatic BCC to another e-mail account for all sent messages Windows XP Outlook: automatic BCC to another e-mail account for all sent messages Office 2007
Novice
 
Join Date: Jul 2009
Posts: 1
Mohammad is on a distinguished road
Post more than one account...

hi guys,

thank you very much for the great macro,
I'm wondering if there is a way to specify the From header that needs to be copied (Bcc'd).
I mean if I have more than one account, I want all emails that sent from the specific account to be Bcc'd, because I figured out this macro is coping all sent emails from all account I have.

much appreciated,

Last edited by Mohammad; 07-03-2009 at 06:34 PM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook: automatic BCC to another e-mail account for all sent messages Having a Problem synching outlook to my google account Sneefus Outlook 1 08-20-2010 02:43 PM
Outlook Deleted Messages NS1981 Outlook 2 07-19-2010 06:25 AM
Sending Outlook account to gmail ? bwall Outlook 0 09-24-2006 07:24 PM
Outlook: automatic BCC to another e-mail account for all sent messages Remove Exchange Server E-Mail account from Outlook Chance Outlook 3 04-07-2006 07:06 AM
Outlook Error Messages cindyb214 Office 2 11-23-2005 06:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft