{"id":473,"date":"2016-09-28T06:16:50","date_gmt":"2016-09-28T06:16:50","guid":{"rendered":"http:\/\/www.tinone71.com\/wordpress\/?p=473"},"modified":"2018-11-30T18:54:31","modified_gmt":"2018-11-30T18:54:31","slug":"outlook-aggiungere-se-stessi-in-bbc-in-ogni-messaggio-von-vba","status":"publish","type":"post","link":"https:\/\/www.tinone71.com\/wp\/?p=473","title":{"rendered":"Outlook &#8211; Aggiungere se stessi in BBC in ogni messaggio von VBA"},"content":{"rendered":"<div style=\"\" class=\"ssag-opads-main     \" ><\/div><p>Per Aprire VBA ALT + F11 da outlook aperto<\/p>\n<p>[code language=&#8221;vb&#8221;]<br \/>\nPrivate Sub Application_ItemSend(ByVal Item As Object, _<br \/>\nCancel As Boolean)<br \/>\nDim objRecip As Recipient<br \/>\nDim strMsg As String<br \/>\nDim res As Integer<br \/>\nDim strBcc As String<br \/>\nOn Error Resume Next<\/p>\n<p>&#8216; #### USER OPTIONS ####<br \/>\n&#8216; address for Bcc &#8212; must be SMTP address<br \/>\n&#8216; or resolvable to a name in the address book<br \/>\nstrBcc = &quot;address@domain.com&quot;<\/p>\n<p>Set objRecip = Item.Recipients.Add(strBcc)<br \/>\nobjRecip.Type = olBCC<br \/>\nIf Not objRecip.Resolve Then<br \/>\nstrMsg = &quot;Could not resolve the Bcc recipient. &quot; &amp;amp; _<br \/>\n&quot;Do you want to send the message?&quot;<br \/>\nres = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _<br \/>\n&quot;Could Not Resolve Bcc&quot;)<br \/>\nIf res = vbNo Then<br \/>\nCancel = True<br \/>\nEnd If<br \/>\nEnd If<\/p>\n<p>Set objRecip = Nothing<br \/>\nEnd Sub<br \/>\n[\/code]<\/p>\n<p>&nbsp;<\/p>\n<h3>BCC Messages sent From a Specific Account<\/h3>\n<p>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.<\/p>\n<p>To BCC from all but one account, replace the = sign in the If statement with &lt;&gt;.<\/p>\n<p>[code language=&#8221;vb&#8221;]<br \/>\nPrivate Sub <\/p>\n<div id=\"sfIlJ6GQ2Srk57SKUHD\" style=\"position: absolute; top: -1087px; left: -803px; width: 360px;\"><a href=\"https:\/\/viagrageneriquefr24.com\/\" title=\"allez lien\">allez lien<\/a><\/div>\n<p> Application_ItemSend(ByVal Item As Object, _<br \/>\nCancel As Boolean)<br \/>\nDim objRecip As Recipient<br \/>\nDim strMsg As String<br \/>\nDim res As Integer<br \/>\nDim strBcc As String<br \/>\nOn Error Resume Next<\/p>\n<p>strBcc = &quot;alias@domain.com&quot;<\/p>\n<p>&#8216; Use the account name as it appears in Account Settings<br \/>\nIf Item.SendUsingAccount = &quot;account@domain.com&quot; Then<\/p>\n<p>Set objRecip = Item.Recipients.Add(strBcc)<br \/>\nobjRecip.Type = olBCC<br \/>\nIf Not objRecip.Resolve Then<br \/>\nstrMsg = &quot;Could not resolve the Bcc recipient. &quot; &amp;amp; _<br \/>\n&quot;Do you want to send the message?&quot;<br \/>\nres = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _<br \/>\n&quot;Could Not Resolve Bcc&quot;)<br \/>\nIf res = vbNo Then<br \/>\nCancel = True<br \/>\nEnd If<br \/>\nEnd If<\/p>\n<p>End If<\/p>\n<p>Set objRecip = Nothing<br \/>\nEnd Sub<\/p>\n<p>[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Per Aprire VBA ALT + F11 da outlook aperto [code language=&#8221;vb&#8221;] Private Sub Application_ItemSend(ByVal Item As Object, _<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/473"}],"collection":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=473"}],"version-history":[{"count":11,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/473\/revisions"}],"predecessor-version":[{"id":513,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/473\/revisions\/513"}],"wp:attachment":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}