Comment tu construis ton mail ?
Version imprimable
Comment tu construis ton mail ?
Comment c'est dans ta procédure "SendMail"?
Comme cela :
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 Function SendMail(strTo, strBody, strTitre) Dim objMail,objConfig,objFields Set objMail = CreateObject("CDO.Message") Set objConfig = CreateObject("CDO.configuration") Set objFields = objConfig.Fields With objFields .Item("http://schemas.microsoft.com/cdo/configuration/SendUsing")= 2 'Définit le type d'envoi en SMTP .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")= "IP" .Item("http://schemas.microsoft.com/cdo/configuration/SMTPServerPort")= 25 .Update End With With objMail Set .Configuration = objConfig .To = strTo .Cc = strCc .Bcc = strBcc .From = "Script.AjustementStock@genzyme.com" .Subject = strTitre .HTMLBody = strBody .Send End With End Function
Bien vu le <br> dans HTMLBody.
:hola:
C'est OK.
Un grand merci à vous.