How would you create a script to send email with CDO?
David Kuhn
------------------
David Kuhn
------------------
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "myaddress@somewhere.com"
objEmail.To = "myaddress@somewhere.com"
objEmail.Subject = "Secuity Report for " & strServerName
objEmail.Textbody = "Server Secutirity Report for" & strServerName & vbCRL & strBodyReport
objEmail.AddAttachment = strFilename
objEmail.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 2
objEmail.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = _
"10.190.12.128" 'Modify to your SMTP Server Address
objEmail.Configuration.Fields.Item _
("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25
objEmail.Configuration.Fields.Update
objEmail.Send