Set objEmail = CreateObject("CDO.Message")
set oFSO = CreateObject("Scripting.FileSystemObject")
set oFile = oFSO.OpenTextFile("report.txt")
objEmail.From = "backups@abc.ca"
objEmail.To = "it@abc.ca"
objEmail.Subject = "Backup Report"
objEmail.Textbody = oFile.ReadAll
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"mail.abc.ca"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
oFile.Close
set oFSO = CreateObject("Scripting.FileSystemObject")
set oFile = oFSO.OpenTextFile("report.txt")
objEmail.From = "backups@abc.ca"
objEmail.To = "it@abc.ca"
objEmail.Subject = "Backup Report"
objEmail.Textbody = oFile.ReadAll
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
"mail.abc.ca"
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send
oFile.Close