Vous êtes sur la page 1sur 1

Set objMessage = CreateObject("CDO.

Message")
objMessage.From = WScript.Arguments(0)
objMessage.To = WScript.Arguments(1)
objMessage.Cc = WScript.Arguments(2)
objMessage.Bcc = WScript.Arguments(3)
objMessage.Subject = WScript.Arguments(4)
objMessage.TextBody = WScript.Arguments(5) & vbCrLf
objMessage.AddAttachment WScript.Arguments(6)

'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server


objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
"SMTP_SERVER_NAME"

'Server port (typically 25)


objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objMessage.Configuration.Fields.Update

Vous aimerez peut-être aussi