Bonjour tout le monde,

Dans une application, nous fabriquons de toutes pièces un mail qui est ensuite envoyé automatiquement via SMTP.
Pour ce faire, j'utilise le CDO dont voici le code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
		var objEmail = new ActiveXObject("CDO.Message");  
        objEmail.From =  WUser;
		objEmail.Subject = WObjet; // "HELLO WORLD";  
// we are sending a text email. simply switch the comments around to send an html email instead
		objEmail.Textbody = WCorps;  //		objEmail.HTMLBody = "this is the body"
// Send the message using the network (SMTP over the network).
		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;  
//		
		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = WSmtp;
// If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.		
		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 //basic (clear-text) authentication		
//Your UserID on the SMTP server
		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = WUser;
//Your password on the SMTP server
		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = WMdp;
// Port...		
		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = WPort;  
 //Use SSL for the connection (False or True)
		objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = false;
		objEmail.To = WDestinataire; 
		objEmail.Cc = WDestinataire2; 
		objEmail.Bcc = P_CopieCachee; 
		objEmail.Configuration.Fields.Update(); 
		objEmail.Send();
Je cherche à forcer les demandes d'accusé de lecture à NON uniquement pour ces mails, car nous sommes confronter à un utilisateur qui a configurer son Outlook pour demander des ARL à chaque message envoyés.
Notre automatisme tombe donc à l'eau.

Merci d'avance pour votre.