Private Sub m_Inspectors_NewInspector(ByVal Inspector As Inspector) 'Set BCC emails 'This routine is activated when a NEW EMAIL is being created Dim objRecip As Recipient Dim strMsg As String Dim strBCC As String If TypeName(Inspector.currentItem) = "MailItem" Then If Inspector.currentItem.entryid = "" Then ' #### USER OPTIONS #### ' address for Bcc -- must be SMTP address or resolvable ' to a name in the address book strBCC = "email@example.com" Set objRecip = Inspector.currentItem.Recipients.Add(strBCC) objRecip.Type = olBCC If Not objRecip.Resolve Then strMsg = "Could not resolve the Bcc recipient." MsgBox strMsg, vbInformation, "Could Not Resolve Bcc Recipient" End If Set objRecip = Nothing End If End If End Sub
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: