Skip to content

Tinone 71

Stralci dal web

  • HOME
  • About me..
  • News
  • CIAO MAX
  • GALLERIE
    • Comics 2022
    • Fuochi Sant’ Eusebio 2022
    • Fulmini luglio 2021
    • Lago Antrona
    • Ferrara
    • Saline di Comacchio
    • Lido di Pomposa
    • Foto Varie
    • Pietra Ligure 2019
    • Schiranna 2019
    • Laveno Dicembre 2019
    • Incendio Ghirla
    • Forte di Bard Aosta
    • Costa Fascinosa 2023
  • MOTO
    • YAMAHA R1 1999
    • HONDA VTR 1000
    • CBR 600F
    • MUGELLO 2008
  • Privacy Policy
  • Assistenza Remota HopTodesk
  • Home
  • Outlook – Aggiungere se stessi in BBC in ogni messaggio von VBA
  • Senza categoria

Outlook – Aggiungere se stessi in BBC in ogni messaggio von VBA

Admin 28 Settembre 2016 2 min read

Per Aprire VBA ALT + F11 da outlook aperto

[code language=”vb”]
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 = "address@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 to send the message?"
res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _
"Could Not Resolve Bcc")
If res = vbNo Then
Cancel = True
End If
End If

Set objRecip = Nothing
End Sub
[/code]

 

BCC Messages sent From a Specific Account

If you have multiple accounts in your profile and only want to BCC messages sent through a specific account, use an IF statement to check the SendUsingAccount value. Be sure to use the account name as it appears in the From field or Account Settings dialog.

To BCC from all but one account, replace the = sign in the If statement with <>.

[code language=”vb”]
Private Sub

allez lien

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

strBcc = "alias@domain.com"

‘ Use the account name as it appears in Account Settings
If Item.SendUsingAccount = "account@domain.com" Then

Set objRecip = Item.Recipients.Add(strBcc)
objRecip.Type = olBCC
If Not objRecip.Resolve Then
strMsg = "Could not resolve the Bcc recipient. " &amp; _
"Do you want to send the message?"
res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _
"Could Not Resolve Bcc")
If res = vbNo Then
Cancel = True
End If
End If

End If

Set objRecip = Nothing
End Sub

[/code]

Continue Reading

Previous: How to Find Wi-Fi Network Passwords from Command Line on Mac | OSXDaily

Related Stories

How to Find Wi-Fi Network Passwords from Command Line on Mac | OSXDaily
3 min read
  • Senza categoria

How to Find Wi-Fi Network Passwords from Command Line on Mac | OSXDaily

5 Settembre 2016
Come installare Windows 10 da USB
1 min read
  • Senza categoria

Come installare Windows 10 da USB

3 Agosto 2016
Guida Vsftpd
3 min read
  • Linux
  • Senza categoria

Guida Vsftpd

30 Agosto 2009
Copyright © All rights reserved. | DarkNews by AF themes.
Cookies
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Sempre abilitato
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
ACCETTA E SALVA