Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim myRecipient As Outlook.Recipient
If Not Item.Class = olMail Then GoTo fin
Dim prompt As String
' ici renseigner le destinataire
cci = "moemail@xxx.com"
'########################Option CCI############################
prompt = "Ajouter le cci " & cci & " à " & Item.Subject & "?"
Dim reponse
reponse = MsgBox(prompt, vbYesNoCancel + vbQuestion, "Sample")
If reponse = vbCancel Then
Cancel = True
Exit Sub
ElseIf reponse = 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
fin:
End Sub