fdthierry
Messages postés106Date d'inscriptionlundi 24 novembre 2003StatutMembreDernière intervention27 septembre 2019
-
5 nov. 2004 à 10:38
JBond34
Messages postés1Date d'inscriptionmardi 9 mars 2004StatutMembreDernière intervention23 mars 2005
-
23 mars 2005 à 14:08
Bonjour,
Mieux qu'un long discours, voici mon code:
' Send by connecting to port 25 of the SMTP server.
Dim iMsg
Dim iConf
Dim Flds
Dim strMail
Le Service Informatique."
strMail = strMail & ""
strMail = strMail & "</HTML>"
' Apply the settings to the message.
With iMsg
Set .Configuration = iConf
.To = "Expediteur@domaine.fr"
.From = "Destinataire@domaine.fr"
.Subject = "Envoi mail via un script VBS"
.AttacheFile "C:\Temp\Toto.log"
.HTMLBody = strMail
.Send
End With
' Clean up variables.
Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing
MsgBox "Mail Sent!"
Je n'arrive pas à joindre de pièces jointes, ou est mon pb svp?
Il bloque systématiquement sur AttachFile.