Gå til hovedindhold

Hvordan bcc automatisk alle e-mails, du sender i Outlook?

Når du sender en e-mail-besked, og du har en permanent hemmelig modtager, men ikke ønsker, at de andre modtagere skal se hans eller hendes adresse, skal du bruge bcc-funktionen. Men når vi har brug for bcc, skal vi manuelt vise bcc-feltet og vælge en kontaktperson til det. For at undgå disse manuelle handlinger viser følgende artikel dig, hvordan du ændrer outlook for automatisk at bcc en e-mail-adresse på alle e-mails, du sender.


Standard auto bcc i outlook ved hjælp af VBA

Du kan anvende nedenstående VBA-kode for at konfigurere automatisk Bcc-regel i Outlook. Gør som følger:

1. Tryk på andre + F11 taster samtidigt for at åbne vinduet Microsoft Visual Basic til applikationer.

2. Dobbeltklik på Denne OutlookSessioni projektruden, og indsæt derefter under VBA-kode i åbningsvinduet. Se skærmbillede nedenfor:

VBA-kode: Auto bcc, når du sender alle e-mails

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

Bemærk: Udskift venligst "" i ovenstående kode med den e-mail-adresse, du vil bcc til.

3. Gem VBA-koden, og luk vinduet Microsoft Visual Basic for Applications.

Fra nu af behøver du ikke udfylde adressen i feltet Bcc. Når du sender e-mail fra din outlook, vil den automatisk bcc til din ønskede modtager, når VBA-koden udføres.


Auto bcc i Outlook ved hjælp af Kutools til Outlook

Ovenstående VBA-kode er nogle vanskelige og besværlige for os begyndere, her er et let og hurtigt værktøj - Kutools til Outlook for at hjælpe dig med automatisk at bcc alle e-mails eller specificerede e-mails, som du sender i Outlook.

Kutools til Outlook: Ultimativt Outlook-værktøjssæt med over 100 praktiske værktøjer. Prøv det GRATIS i 60 dage, ingen begrænsninger, ingen bekymringer!   Læs mere ...   Start gratis prøveversion nu!

Efter installation af Kutools til Outlook skal du gøre som følger:

1. Klik Kutools > Auto CC / BCC > Regelchef, se skærmbillede:

2. I Auto CC / BCC Manager dialogboksen, klik Ny .

3. I Reguleringsguiden skal du angive betingelser, du vil filtrere e-mails efter. I mit tilfælde sætter jeg kryds i med bestemte ord i kroppen indstilling, og klik derefter på den understregede tekst af specifikke ord at redigere det.

4. Klik på i dialogboksen Tekst indeholder Ny knap for at tilføje nye ord.

5. Skriv et ord i dialogboksen Søgetekst Ny søgetekst boks, klik på Tilføj knappen, og klik derefter på OK .
Tips: For at tilføje flere ord på samme tid skal du skrive et ord i Ny søgetekst og klik på Tilføj gentag denne handling for at tilføje andre ord en efter en, og klik til sidst på OK .

6. Nu går det tilbage til teksten indeholder dialog. Hvis det er nødvendigt, kan du klikke på Ny knappen for at tilføje andre ord, som du har brug for, og klik derefter på OK-knappen for at gemme disse ord.
Tip: Hvis du tilføjer flere ord i det samme søgetekstfelt samtidigt, er forholdet mellem disse ord "AND". Hvis du tilføjer flere ord ved at klikke på Ny knap successivt er forholdet mellem disse ord "OR".

7. Derefter vender den tilbage til guiden regler, angiv andre betingelser, som du har brug for, og klik på Næste .

8. I den anden reglerguide skal du angive undtagelser eller ikke kontrollere nogen undtagelser, som du har brug for, og klikke på Næste .

9. I den tredje reglerguide skal du skrive et navn til denne nye Bcc-regel i Regel Name i feltet, indtast beskrivelser for reglen i Regel noter boks, klik på Modtager knappen for at tilføje Cc- eller Bcc-modtagere, kryds af køreindstillingerne i Indstil regelindstillinger sektion, og klik på knappen OK .

10. I Auto CC / BCC Manager skal du sikre dig, at den nye Cc / Bcc-regel er markeret, og pik OK-knappen for at lukke dialogen.

11. Fortsæt med at klikke på Kutools> CC / BCC> Aktivér Auto CC / BCC i Outlook-hovedgrænsefladen for at aktivere reglen.

Og klik på OK -knappen i dialogboksen, der genopretter bekræftelse.

Indtil videre er bcc-reglen oprettet, når du sender en e-mail, sendes den samme besked til bcc-modtageren på samme tid.

Noter:
(1) Med denne funktion kan du indstille altid CC regler også.
(2) Du kan oprette flere regler efter behov ved hjælp af dette værktøj.
(3) Hvis du vil lukke reglerne, kan du klikke på Aktivér Auto CC / BCC, og alle reglerne fungerer ikke. Du kan også fjerne markeringen af ​​navnet på reglerne i Auto CC / BCC Manager dialogboks for at deaktivere nogle specificerede regler.


Relateret artikel:

Hvordan cc automatisk mig altid i Outlook?


Bedste kontorproduktivitetsværktøjer

Kutools til Outlook - Over 100 kraftfulde funktioner til at superlade din Outlook

🤖 AI Mail Assistant: Øjeblikkelige pro-e-mails med AI-magi – et klik for geniale svar, perfekt tone, flersproget beherskelse. Forvandl e-mailing ubesværet! ...

📧 Email Automation: Ikke til stede (tilgængelig til POP og IMAP)  /  Planlæg Send e-mails  /  Auto CC/BCC efter regler ved afsendelse af e-mail  /  Automatisk videresendelse (avancerede regler)   /  Tilføj automatisk hilsen   /  Opdel automatisk e-mails med flere modtagere i individuelle meddelelser ...

📨 Email Management: Genkald nemt e-mails  /  Bloker svindel-e-mails af emner og andre  /  Slet duplikerede e-mails  /  Avanceret søgning  /  Konsolider mapper ...

📁 Vedhæftede filer ProBatch Gem  /  Batch adskilles  /  Batch komprimere  /  Automatisk gem   /  Automatisk afmontering  /  Automatisk komprimering ...

🌟 Interface Magic: 😊 Flere smukke og seje emojis   /  Boost din Outlook-produktivitet med fanebaserede visninger  /  Minimer Outlook i stedet for at lukke ...

👍 Wonders med et enkelt klik: Besvar alle med indgående vedhæftede filer  /   Anti-phishing e-mails  /  🕘Vis afsenderens tidszone ...

👩🏼‍🤝‍👩🏻 Kontakter og kalender: Batch Tilføj kontakter fra udvalgte e-mails  /  Opdel en kontaktgruppe til individuelle grupper  /  Fjern fødselsdagspåmindelser ...

Over 100 Features Afvent din udforskning! Klik her for at finde mere.

Læs mere       Gratis download      Køb
 

 

Comments (53)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How to send mail BCC & recipient recieve mail with Dear <Recipient>
This comment was minimized by the moderator on the site
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?
This comment was minimized by the moderator on the site
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 = ""
strBcc = ""
But outlook 2016 only took 2nd line to add onto bcc.
This comment was minimized by the moderator on the site
Try Kutools for Outlook's Auto Bcc feature!
This comment was minimized by the moderator on the site
same problem here, do u have a solution so far?
This comment was minimized by the moderator on the site
The VBA code works great. Thanks, but what if I want to bcc still, but only when sending to one specific email recipient?
This comment was minimized by the moderator on the site
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
This comment was minimized by the moderator on the site
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.
This comment was minimized by the moderator on the site
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!
This comment was minimized by the moderator on the site
Nice, very useful for me, Thanks
This comment was minimized by the moderator on the site
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 = "" ElseIf Item.Subject = "ref" Then strBcc = "" ElseIf Item.Subject = "REF" Then strBcc = "" 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
This comment was minimized by the moderator on the site
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 = ""[/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.
This comment was minimized by the moderator on the site
Can we make this work with sent items that have attachments.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations