M
Marlon
please anyone, kindly enlighten me...
im using CDO do send email with attachment to a specific
SMTP server in VBScript (*.vbs file). i just used a
sample code i found on the net, here it is:
set objMessage = CreateObject("CDO.Message")
objMessage.Subject = subj
objMessage.Sender = "(e-mail address removed)"
objMessage.From = "Fax Server"
objMessage.ReplyTo = "(e-mail address removed)"
objMessage.To = emailadd
objMessage.AddAttachment filename
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing"
) = 2
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver
") = "192.168.0.12"
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver
port") = 25
objMessage.Configuration.Fields.Update
objMessage.Send
i dont have much background about CDO, i just want to know
why the script include lines such
as "("http://schemas.microsoft.com/cdo/configuration/smtpse
rverport")"? does the pc where im running this script
needs a internet access? and any other site i could use
for reference about this object?
thanks!!!
marlon
im using CDO do send email with attachment to a specific
SMTP server in VBScript (*.vbs file). i just used a
sample code i found on the net, here it is:
set objMessage = CreateObject("CDO.Message")
objMessage.Subject = subj
objMessage.Sender = "(e-mail address removed)"
objMessage.From = "Fax Server"
objMessage.ReplyTo = "(e-mail address removed)"
objMessage.To = emailadd
objMessage.AddAttachment filename
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing"
) = 2
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver
") = "192.168.0.12"
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver
port") = 25
objMessage.Configuration.Fields.Update
objMessage.Send
i dont have much background about CDO, i just want to know
why the script include lines such
as "("http://schemas.microsoft.com/cdo/configuration/smtpse
rverport")"? does the pc where im running this script
needs a internet access? and any other site i could use
for reference about this object?
thanks!!!
marlon