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: 430
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 10-18-2010, 09:49 PM
Sarinda Sarinda 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: Oct 2010
Posts: 1
Sarinda is on a distinguished road
Default Auto BCC

I tried your path, but It's doesn't work

Thanks,
Sarinda
Reply With Quote
  #4  
Old 08-23-2011, 03:00 AM
happyuser happyuser 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: Aug 2011
Posts: 1
happyuser is on a distinguished road
Default

Hi
it works fine with me in outlook 2007.
i need to fwd my incoming mails also when it arrives outlook.
can u post the code for that pls ??
Reply With Quote
  #5  
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
  #6  
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
  #7  
Old 09-21-2011, 03:52 PM
Softrix Softrix is offline Outlook: automatic BCC to another e-mail account for all sent messages Windows 7 32bit Outlook: automatic BCC to another e-mail account for all sent messages Office 2007
Novice
 
Join Date: Sep 2011
Location: United Kingdom
Posts: 4
Softrix is on a distinguished road
Smile

Quote:
Originally Posted by fnaess View Post
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...

Outlook 2007 will block scripts/macros if they are not digitally signed. However, you can create your own digital signature and assign it to your script to prevent outlook from blocking it on startup.

From your start menu search for Digital Certificates and you will see a program called Digital Certificates for VBA projects, run that and create a name for your certificate.

Inside Outlook, open the code editor and your code open select the Tools menu and then Digital Signatures. Select your signature just created and click "click here to view certificate properties", click "Install Certificate", Click OK then OK again.

Save your script again and close the editor window and Outlook saving the VBA script if prompted.

Reopen Outlook and when prompted about the certificate select "Trust all documents from this publisher" - the publisher being the certificate you just created so dont worry

All done, enjoy.
Reply With Quote
  #8  
Old 01-05-2012, 03:17 AM
luonchinguoc luonchinguoc 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: May 2011
Posts: 1
luonchinguoc is on a distinguished road
Default

Quote:
Originally Posted by Softrix View Post
Outlook 2007 will block scripts/macros if they are not digitally signed. However, you can create your own digital signature and assign it to your script to prevent outlook from blocking it on startup.

From your start menu search for Digital Certificates and you will see a program called Digital Certificates for VBA projects, run that and create a name for your certificate.

Inside Outlook, open the code editor and your code open select the Tools menu and then Digital Signatures. Select your signature just created and click "click here to view certificate properties", click "Install Certificate", Click OK then OK again.

Save your script again and close the editor window and Outlook saving the VBA script if prompted.

Reopen Outlook and when prompted about the certificate select "Trust all documents from this publisher" - the publisher being the certificate you just created so dont worry

All done, enjoy.
It works again with me, Outlook 2007. Thanks so much.
Reply With Quote
  #9  
Old 01-05-2012, 04:51 AM
Softrix Softrix is offline Outlook: automatic BCC to another e-mail account for all sent messages Windows 7 32bit Outlook: automatic BCC to another e-mail account for all sent messages Office 2007
Novice
 
Join Date: Sep 2011
Location: United Kingdom
Posts: 4
Softrix is on a distinguished road
Default

Quote:
Originally Posted by luonchinguoc View Post
It works again with me, Outlook 2007. Thanks so much.
Your welcome
Reply With Quote
  #10  
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: 430
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
  #11  
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
  #12  
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: 430
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
  #13  
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: 430
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
  #14  
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
  #15  
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
Reply



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 12:43 PM.


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