Note: The other languages of the website are Google-translated. Back to English
Accedi  \/ 
x
or
x
Registrati  \/ 
x

or

Come eseguire automaticamente il bcc di tutte le email che invii in Outlook?

Quando si invia un messaggio di posta elettronica e si dispone di un destinatario segreto permanente ma non si desidera che gli altri destinatari vedano il suo indirizzo, è necessario utilizzare la funzione bcc. Ma quando abbiamo bisogno di bcc, dobbiamo mostrare manualmente il campo bcc e selezionare un contatto per esso. Per evitare queste operazioni manuali, il seguente articolo ti mostrerà come modificare Outlook in bcc automaticamente un indirizzo email su tutte le email che invii.


Bcc automatico predefinito in Outlook utilizzando VBA

È possibile applicare sotto il codice VBA per configurare la regola Bcc automatica in Outlook. Si prega di fare quanto segue:

1. premi il altro + F11 tasti contemporaneamente per aprire la finestra di Microsoft Visual Basic, Applications Edition.

2. Fare doppio clic sul file Questa sessione di Outlooknel riquadro Progetto, quindi incolla sotto il codice VBA nella finestra di apertura. Vedi screenshot qui sotto:

Codice VBA: Bcc automatico durante l'invio di tutte le e-mail

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 = "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
End Sub

Nota: Si prega di sostituire il file "SomeEmailAddress@domain.com" nel codice sopra con l'indirizzo e-mail a cui vuoi bcc.

3. Salvare il codice VBA e chiudere la finestra di Microsoft Visual Basic, Applications Edition.

D'ora in poi, non è necessario inserire l'indirizzo nel campo Ccn. Quando invii un'e-mail dal tuo Outlook, verrà automaticamente bcc al destinatario desiderato mentre il codice VBA viene eseguito.


Ccn automatico in Outlook utilizzando Kutools per Outlook

Il codice VBA sopra è un po 'difficile e fastidioso per noi principianti, ecco uno strumento facile e veloce: Kutools per Outlook per aiutarti a bcc automaticamente tutte le e-mail o le e-mail specificate inviate in Outlook.

Kutools per Outlook: Aggiungi più di 100 strumenti utili per Outlook, da provare gratuitamente senza limitazioni entro 60 giorni. Vedi tutto      Prova gratuita ora

Dopo aver installato Kutools per Outlook, eseguire le seguenti operazioni:

1. Clic Kutools > CC/Ccn automatico > Gestore delle regole, vedi screenshot:

2. Nel Gestione CC/Ccn automatica finestra di dialogo, fare clic Nuovi pulsante.

3. Nella Creazione guidata regole, specifica le condizioni in base alle quali filtrerai le email. Nel mio caso, spunta il file con parole specifiche nel corpo opzione, quindi fare clic sul testo sottolineato di parole specifiche per modificarlo.

4. Nella finestra di dialogo Il testo contiene, fare clic su Nuovi pulsante per aggiungere nuove parole.

5. Nella finestra di dialogo Cerca testo, digita una parola nel file Nuovo testo di ricerca fare clic su Aggiungi pulsante, quindi fare clic su OK pulsante.
Tip: Per aggiungere più parole contemporaneamente, è necessario digitare una parola nel file Nuovo testo di ricerca casella e fare clic su Aggiungi , quindi ripetere questa operazione per aggiungere altre parole una per una e infine fare clic sul pulsante OK pulsante.

6. Ora torna alla finestra di dialogo Il testo contiene. Se necessario, puoi continuare a fare clic su Nuovi pulsante per aggiungere altre parole di cui hai bisogno, quindi fai clic sul pulsante OK per salvare queste parole.
Suggerimenti: se aggiungi più parole contemporaneamente nella stessa casella di testo di ricerca, la relazione tra queste parole è "E". Se aggiungi più parole facendo clic su Nuovi successivamente, la relazione tra queste parole è "OR".

7. Quindi torna alla Creazione guidata regole, specifica le altre condizioni di cui hai bisogno e fai clic su Prossimo pulsante.

8. Nella seconda Creazione guidata regole, specifica le eccezioni o non controllare le eccezioni di cui hai bisogno e fai clic su Prossimo pulsante.

9. Nella terza Creazione guidata regole, digita un nome per questa nuova regola Ccn nel file Nome regola , inserisci le descrizioni per la regola nel file Note sulle regole fare clic su Destinatario pulsante per aggiungere destinatari Cc o Ccn, spuntare le opzioni di esecuzione nel file Imposta le opzioni delle regole sezione e fare clic su OK pulsante.

10. In Auto CC / BCC Manager, assicurati che la nuova regola Cc / Ccn sia selezionata e seleziona il pulsante OK per chiudere la finestra di dialogo.

11. Vai avanti per fare clic Kutools> CC / BCC> Abilita CC / BCC automatico nell'interfaccia principale di Outlook per abilitare la regola.

E clicca il OK pulsante nella finestra di dialogo di riconferma che si apre.

Finora è stata creata la regola bcc, quando si invia un'e-mail, lo stesso messaggio verrà inviato al destinatario bcc allo stesso tempo.

Note:
(1) Con questa funzione è possibile impostare sempre CC anche le regole.
(2) È possibile creare più regole in base alle proprie esigenze utilizzando questo strumento.
(3) Se vuoi chiudere le regole, puoi cliccare Abilita CC / BCC automaticoe tutte le regole non funzioneranno. Inoltre puoi deselezionare il nome delle regole nel file Gestione CC/Ccn automatica finestra di dialogo per disabilitare alcune regole specificate.


Articolo correlato:

Come eseguire automaticamente il cc me stesso sempre in Outlook?


Kutools for Outlook: porta 100 funzionalità avanzate in Outlook e semplifica notevolmente il lavoro!

  • Auto CC / BCC dalle regole durante l'invio di e-mail; Avanzamento automatico Email multiple personalizzate; Risposta automatica senza server di scambio e più funzioni automatiche ...
  • Avviso BCC - mostra il messaggio quando provi a rispondere a tutti se il tuo indirizzo e-mail è nell'elenco BCC; Ricorda quando mancano allegatie altre funzioni di promemoria ...
  • Rispondi (tutti) con tutti gli allegati nella conversazione di posta; Rispondi a molte email in secondi; Aggiunta automatica di saluto quando rispondi; Aggiungi la data all'oggetto ...
  • Strumenti per gli allegati: gestisci tutti gli allegati in tutti i messaggi, Scollegamento automatico, Comprimi tutto, Rinomina tutto, Salva tutto ... Rapporto rapido, Conta le email selezionate...
  • E-mail spazzatura potenti per abitudine; Rimuovi messaggi e contatti duplicati... Consentono di fare in modo più intelligente, veloce e migliore in Outlook.
girato kutools outlook scheda kutools 1180x121
girato kutools outlook kutools plus tab 1180x121
 
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Thuy Nguyen · 4 months ago
    How to send mail BCC & recipient recieve mail with Dear <Recipient> 
  • To post as a guest, your comment is unpublished.
    Julio · 8 months ago
    Confirming this works for Outlook 2020, I just have 1 issue. How can I auto bcc FROM multiple accounts? My work issues us (2) separate emails different domains. Currently, when I send an email from both, I get the copy to the email entered in the code. I would like separate copies from whichever email is sending it. Any solutions?
  • To post as a guest, your comment is unpublished.
    IT works but.. · 3 years ago
    How to set it up auto bcc to multiple email addresses?
    in outlook 2013 only had to add an additional line shown as below
    strBcc = "SomeEmailAddress1@domain.com"
    strBcc = "SomeEmailAddress2@domain.com"
    But outlook 2016 only took 2nd line to add onto bcc.
    • To post as a guest, your comment is unpublished.
      kellytte · 2 years ago
      Try Kutools for Outlook's Auto Bcc feature!
    • To post as a guest, your comment is unpublished.
      steve · 3 years ago
      same problem here, do u have a solution so far?
  • To post as a guest, your comment is unpublished.
    Ty · 3 years ago
    The VBA code works great. Thanks, but what if I want to bcc still, but only when sending to one specific email recipient?
  • To post as a guest, your comment is unpublished.
    Chris · 4 years ago
    Great job guyz.

    Thank you . Worked for Outlook 2016 .

    Wonder how can i check the From to Field in order to autobcc only from one account.

    BR
    Chris
  • To post as a guest, your comment is unpublished.
    Michael Z · 4 years ago
    Works great all day in Outlook 2010. Next day, it stopped working. I followed the instructions that SILUVIA ZHOU gave about macro security (without having to re-do the script) and it appears to work again.
  • To post as a guest, your comment is unpublished.
    Clement · 4 years ago
    Hi. Works great for my laptop and office PC but after using it for about 1 day, or sending about 20+ emails, this feature just doesn't work anymore on both my desktop and laptop.

    Anyone can help me out? I'm using outlook 2010 and 2013.

    Thanks!
  • To post as a guest, your comment is unpublished.
    Adhie Sastro Sadewo · 5 years ago
    Nice, very useful for me, Thanks
  • To post as a guest, your comment is unpublished.
    Andy · 5 years ago
    Hi guys,

    I have tried this code and whilst it does work, it only CC's and not BCC's. I only want emails that contain Ref, REF or ref in the subject line to be BCC'd.

    Is anyone able to check that I have it constructed correctly please?

    *******

    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

    Dim Msg As Outlook.MailItem
    Dim onsMapi As Outlook.NameSpace
    Dim objRecip As Recipient
    Dim strMsg As String
    Dim res As Integer
    Dim strBcc As String

    If Item.Subject = "Ref" Then
    strBcc = "email@email.com"
    ElseIf Item.Subject = "ref" Then
    strBcc = "email@email.com"
    ElseIf Item.Subject = "REF" Then
    strBcc = "email@email.com"
    End If

    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
    • To post as a guest, your comment is unpublished.
      Joe · 4 years ago
      If the "ref" is the only thing in your subject, then it should work fine. Although I would make a few small changes. If you put "Option Compare Text" above your first line (outside the sub) then when you're doing the comparison for your "If" statement, upper and lower case letters will be considered the same. So ref=REF=Ref=rEf=REf, etc. Then you can simplify your conditional to:
      [quote]If Item.Subject = "ref" then strBcc = "email@email.com"[/quote]

      Personally, I would also add an [else strBcc = ""] just to cover your bases.

      Now, if you want to BCC emails that contain "ref" anywhere in the subject, you can try:
      [quote]If instr(Item.Subject,"ref",1) 0[/quote]

      The instr method searches the subject for "ref" and returns a number representing the character in the subject where "ref" starts. If it doesn't find "ref", it returns a 0. A disadvantage of using this method is that you may get some false positives (e.g. the subject contains the word "prefer").

      If you want all emails with subjects that start with "ref" with anything following it, then you can use the following:
      [quote]If instr(Item.Subject,"ref",1) = 1[/quote]

      This is the same as the last one, except instead of getting all emails whose subjects contain "ref" anywhere, you'll only get emails whose subjects contain "ref" that starts with the first character.
  • To post as a guest, your comment is unpublished.
    Keshav · 5 years ago
    Can we make this work with sent items that have attachments.
  • To post as a guest, your comment is unpublished.
    SONU RAJ · 5 years ago
    Bravo!!!! Working great
  • To post as a guest, your comment is unpublished.
    JMax · 5 years ago
    Works great but after the message sends I get an extra blank message that sits in my Outbox (sometimes it has the recipient's email address). So if I send 12 msgs, I see 12 msgs in my Sent box, but is there a way to eliminate the "ghost" message just sitting in the Outbox?
  • To post as a guest, your comment is unpublished.
    OD · 5 years ago
    Thank you mate. :lol:
  • To post as a guest, your comment is unpublished.
    Prabhat · 6 years ago
    hello,

    It works fine when i put code inside the outlook. after restarting MS2007
    it is not working. Please help me
  • To post as a guest, your comment is unpublished.
    pj · 6 years ago
    It works on my win7 and outlook2010, thank you.
  • To post as a guest, your comment is unpublished.
    zeyd88 · 6 years ago
    Thank you very much.It is very good)))
  • To post as a guest, your comment is unpublished.
    Mehdidd · 6 years ago
    if someone could write it in the ItemLoad event, that would be great !
    to actually see the BCC field filled
  • To post as a guest, your comment is unpublished.
    savy · 6 years ago
    how can i use it for single account or profile?
  • To post as a guest, your comment is unpublished.
    Neil · 6 years ago
    Option 1 of using macro editor in outlook works perfect for me, just follow the instruction. I am using outlook 2013
  • To post as a guest, your comment is unpublished.
    Marc · 6 years ago
    Does anyone know a way to apply the auto bcc function to a SHARED mailbox? If you select as a filter 'custom' instead of 'All outting email', it seems that you can only select non-shared mailboxes...
  • To post as a guest, your comment is unpublished.
    SYNDenver · 7 years ago
    This macro works great in 2013 till I reboot. If I do not do anything after a reboot, it does not work, It works if I do the following after every reboot:
    I click on the developer, Visual Basic, close it,
    Then click on Macro Security, close it.

    Once I do this it works for the session. It stops again on reboot.
  • To post as a guest, your comment is unpublished.
    SYNDenver · 7 years ago
    This code works, except I find that I need to open the developer after every reboot. After a reboot, the macro does not work unless I click on developer, open the macro, close it, open the security, close it.

    Any Ideas?
  • To post as a guest, your comment is unpublished.
    Shahriar · 7 years ago
    hi,
    thanx its work nicely
    but my question is how can i use this auto BCC for multiple email, here you showed for only one email bcc, can i use this for multiple mail ?? if i can than how ?
  • To post as a guest, your comment is unpublished.
    SupremeAC · 7 years ago
    Hi there and thank you for the code. Works perfectly for me in Outlook 2013. I was wondering if there is a way to have it also work when replying to other people's mails. It seems to only work when I send a 'new' mail to someone?
  • To post as a guest, your comment is unpublished.
    Tony_Warren · 7 years ago
    Thanks.

    The autobcc works like a treat.
  • To post as a guest, your comment is unpublished.
    Kevin_Black · 7 years ago
    Hi There, I cannot get the code to work in Office2013.
    From the tools>>references menu do I need to activate any specific libraries?

    Thanks
    Kevin
  • To post as a guest, your comment is unpublished.
    Shep · 7 years ago
    Great post - really helped, the only problem is the bcc doesn't run when the mail isn't created from within Outlook - eg you right-click on a file from the desktop, send to, mailrecipient, or you click on the email file icon from within a program, and it doesn't bcc - can anyone help ?

    I also slightly modified the code, so that Outlook gives you choice whether or not to bcc the recipient.

    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
    Dim intresponse As Integer
    On Error Resume Next

    intresponse = MsgBox("Click Yes to share this email with QA, click No to keep it private", _
    vbYesNo + vbQuestion, _
    "Email Privacy")
    If intresponse = vbYes Then


    strBcc = "recipient@email.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

    End If



    End Sub
  • To post as a guest, your comment is unpublished.
    Marc · 7 years ago
    This was a very usefull post for me! I use gmail as a sort of backup for all my mail and this made it possible without people commenting on an added CC line (the only option Outlook provides as a default).
  • To post as a guest, your comment is unpublished.
    chris · 7 years ago
    Thanks for the instructions! How do i adjust this so that I can be BCC'd on all emails except to some specific email addresses or group of "@domain.com". Thanks!
  • To post as a guest, your comment is unpublished.
    Manjur Alam Bhuiyan · 7 years ago
    I face another Problem In MS office Outlook
    microsoft office outlook has encountered a problem and needs to close we are sorry for inconvenience
  • To post as a guest, your comment is unpublished.
    Manjur Alam Bhuiyan · 7 years ago
    i take help from ur site
  • To post as a guest, your comment is unpublished.
    Norbert Lars · 7 years ago
    hey,

    this VBA works nice, one question if i may ask

    is there a way to activate only to an account? for example i have 3 accounts on my compouter @yahoo, @hotmail, @gmail and i want only those sent from the @gmail account to be auto BCC but the rest to go normal

    what should be add to the script ?
    • To post as a guest, your comment is unpublished.
      Chris Cara · 7 years ago
      I am interested in this also.

      Thanks!
      • To post as a guest, your comment is unpublished.
        Harry · 7 years ago
        If you need to BCC back to some account just use Item.SendUsingAccount instead of fixed E-mail, in other words, use
        in line 10 the following:
        strBcc = Item.SendUsingAccount
        this string will find the account E-mail address which used for send and use it.
        Enjoy!
        • To post as a guest, your comment is unpublished.
          John · 6 years ago
          This would only work when you want to BCC the same email address from which you are sending email.
          What if you want to BCC different email addresses in different accounts?
          Account 1 :: 123@Gamil.com : BCC 123@abc.com
          Account 1 :: 123@Hotmail.com : BCC 123@def.com
          Account 1 :: 123@Yahoo.com : BCC 123@xyz.com
          • To post as a guest, your comment is unpublished.
            Joe · 4 years ago
            You could use conditional statements combined with the bit Harry provided to determine who to BCC. In this instance, I would use the Select Case statement:

            [quote]Select Case Item.SendUsingAccount
            Case "123@Gmail.com"
            strBcc = "123@abc.com"
            Case "123@Hotmail.com"
            strBcc = "123@def.com"
            Case "123@Yahoo.com"
            strBcc = "123@xyz.com"
            End Select[/quote]
  • To post as a guest, your comment is unpublished.
    Goups · 7 years ago
    When send the email, how i can remove the BCC from the send items, I want the Bcc to be hide in the send items.
    • To post as a guest, your comment is unpublished.
      karla123 · 7 years ago
      Hi, wondering if you found a solution to hide bcc from Sent Folder? I've been trying to do so but to no avail. Any help will be appreciated. Thanks!
      • To post as a guest, your comment is unpublished.
        Faraz · 5 years ago
        Hi

        I am also looking for the same solution, plz help me too.

        I want to automatically BCC all my emails to my personal email address via VBA code which is working fine. But when I go to sent items BCC field is visible to me, I want to hide it from myself as well so that even it is not visible to me.
        Can anyone please help on this with VBA code. Thanks
        Currently I am using the following code:
        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 = "privateemail@gmail.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
      • To post as a guest, your comment is unpublished.
        Faraz · 5 years ago
        Hi

        I am also looking for the same solution

        I want to automatically BCC all my emails to my personal email address via VBA code which is working fine. But when I go to sent items BCC field is visible to me, I want to hide it from myself as well so that even it is not visible to me.
        Can anyone please help on this with VBA code. Thanks
        Currently I am using the following code:
        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 = "privateemail@gmail.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
  • To post as a guest, your comment is unpublished.
    Steviej · 7 years ago
    VBA worked as advertised. Thank you.
  • To post as a guest, your comment is unpublished.
    Karen · 7 years ago
    Worked fine with Outlook 2013 but came up with a compile error in 2007
  • To post as a guest, your comment is unpublished.
    Harry · 8 years ago
    The macros starts but do nothing in Outlook 2010: If I put Stop to line 13 it opens VBA window and lets me run macros step-by-step... but when macros finishes I see no any leters. Looks like it send letter before BCC added.
  • To post as a guest, your comment is unpublished.
    Leisha · 8 years ago
    hello,

    I did the instructions for outlook 2007 and it didn't work :/ any tips?
  • To post as a guest, your comment is unpublished.
    Chris · 8 years ago
    It works great but is there a way to do this with multiple bcc?
    • To post as a guest, your comment is unpublished.
      Rory · 6 years ago
      [quote name="Chris"]It works great but is there a way to do this with multiple bcc?[/quote]

      So, since it calls the method Item.Recipients.Add(strBcc) to add another recipient the program treats whatever string you provide as a single email address. The trick is simply to call the same method again in the same fashion for a second variable.

      E.g.
      strBcc = "email1@email.com"

      strBcc2 = "email2@email.com"

      Set objRecip = Item.Recipients.Add(strBcc)
      objRecip.Type = olBCC

      Set objRecip = Item.Recipients.Add(strBcc2)
      objRecip.Type = olBCC


      I'm no vba expert so not sure what the Set objRecip part does at all... but the above works for me.
      • To post as a guest, your comment is unpublished.
        Jeremy · 4 years ago
        I've tried your suggestion but it show error message "the operation failed. The messaging interfaces have returned an unknown error. If the problem persist, restart Outlook. Cannot resolve recipient.", any suggestion?
  • To post as a guest, your comment is unpublished.
    manjur · 8 years ago
    i take help from ur site
    thanks
  • To post as a guest, your comment is unpublished.
    Kitkat · 8 years ago
    Hi, this doesn't seem to work on Outlook 2013. Can you create another code for that version?

    Thanks!
    • To post as a guest, your comment is unpublished.
      siluvia zhou · 8 years ago
      Dear Kitkat,
      This code also works on Outlook 2013.
      After saving the code, please do as follows:
      1. Go to the [b]Developer[/b] tab, and click [b]Macro Security[/b].
      2. In the popping up [b]Trust Center[/b] dialog, select the [b]Enable all macros (not recommended; potentially dangerous code can run)[/b] option in the Macro Settings section. Then click [b]OK[/b].
      3. Now, close your Outlook 2013 application and then restart it, the code will work. :-)