2015-12-03 106 views

回答

1

它去thisOutlookSession

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) 
Dim olRecip As Recipient 
    Dim olMsg As String 
    Dim res As Integer 
    Dim olBcc As String 

    On Error Resume Next 

    '// set email address here 
    olBcc = "[email protected]" 

    Set olRecip = Item.Recipients.Add(olBcc) 
    olRecip.Type = olBcc 
    If Not olRecip.Resolve Then 
     olMsg = "Could not resolve Bcc recipient. " & _ 
       "Do you still want to send?" 
     res = MsgBox(olMsg, vbYesNo + vbDefaultButton1, _ 
       "Could Not Resolve Bcc Recipient") 
     If res = vbNo Then 
      Cancel = True 
     End If 
    End If 

    Set olRecip = Nothing 
End Sub 
相關問題