Bonjour tout le monde,

dans nos programmes, en JAVASCRIPT, nous utilisons SMTP pour envoyer des mails formatés de manière spécifiques.
Ces mails sont ensuite décortiqués et interprétés à l'arrivée pour une application en VB qui fonctionne sous Outlook.

Mais voila, dans certains cas (lignes trop longue), nous avons remarqué que des sauts de lignes étaient insérés automatiquement.
On pense que ça se produit au-delà de 72 caractères par ligne.

Est-ce qu'il y aurait un moyen de supprimer ou de repousser cette limite, soit pas code, soit pas configuration ?

Merci d'avance pour votre aide.

Si ça peut aider, voici un morceau du code qui nous permet d'envoyer ces mails :

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 
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;
if (WObjet == "...Envoi d'un message.")
{
	objEmail.Bcc = P_CopieCachee; 
	P_CopieCachee = WDestinataire + ";" + P_CopieCachee;
	WBcc = P_CopieCachee.split(";");
	WCptSend = 0;
	WCptTot = WBcc.length - 2; // ON NE PREND PAS EN COMPTE LES 2 DERNIERS SPLIT CAR ILS SONT VIDES
	G_ERRSEND = false;
	WCptErr = 0;
	WNomErr = "";
	while (WCptSend <= WCptTot)
	{
		objEmail.To = WBcc[WCptSend]; 
		objEmail.Cc = ""; 
		objEmail.Bcc = ""; 
		objEmail.Configuration.Fields.Update(); 
		try 
		   { 
				objEmail.Send(); 
		   }
		catch (err) 
		   {
				WMessErr = "err = " + err + G_CrLf;
				WMessErr = WMessErr + "err.number = " + err.number + G_CrLf;
				WMessErr = WMessErr + "err.name = " + err.name + G_CrLf;
				WMessErr = WMessErr + "err.message = " + err.message + G_CrLf;
				alert(WMessErr);
				WCptErr = WCptErr + 1;
				WNomErr = WBcc[WCptSend] + " - ";
				G_ERRSEND = true;
		   };
 
		WCptSend = WCptSend + 1;
	};
...
...
...