Citation :
 
 
 Private Sub Application_ItemSend(ByVal Item As Object, _
  
 Cancel As Boolean)
  
 'By Oliv' 29/06/2007 pour Outlook 2003
  
 Dim myRecipient As Outlook.Recipient
  
 If Not Item.Class = olMail Then GoTo fin
  
 Dim prompt As String
  
 ' ici renseigner le destinataire
  
 cci = "MonDestinataire@sonDomaine.fr"
  
 'commentez au choix l'option non voulue
  
 '########################Option CCI############################
  
 prompt = "Ajouter le cci " & cci & " à " & Item.Subject & "?"
  
 If MsgBox(prompt, vbYesNo + vbQuestion, "Sample" ) = vbYes Then
  
 Set myRecipient = Item.Recipients.Add(cci)
  
 myRecipient.Type = olBCC
  
 myRecipient.Resolve
  
 If myRecipient.Resolved = False Then
  
 MsgBox "L'adresse Email n'est pas correcte !", vbCritical, "Erreur"
  
 Cancel = True
 End If
  
 End If
  
 '########################Option CC##############################
  
 prompt = "Ajouter le cc " & cci & " à " & Item.Subject & "?"
  
 If MsgBox(prompt, vbYesNo + vbQuestion, "Sample" ) = vbYes Then
  
 Set myRecipient = Item.Recipients.Add(cci)
  
 myRecipient.Type = olCC
  
 myRecipient.Resolve
  
 If myRecipient.Resolved = False Then
  
 MsgBox "L'adresse Email n'est pas correcte !", vbCritical, "Erreur"
  
 Cancel = True
 End If
  
 End If
  
 '#######################FIN#####################################
  
 fin:
  
 End Sub
 
   |