richardrekos
MIS
I need to send an attachment w/ where the filename is the name of the machine (.xml). Is it possible to use a variable like strMachine and use that in the filename? I don't know the correct syntax...
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "richard.rekos@questionmark.com"
objEmail.To = "richard.rekos@questionmark.com"
objEmail.Subject = "AT Output"
objEmail.Textbody = "AT Output"
objEmail.AddAttachment "c:\assettracker\data\strMachine.xml"
objEmail.Send
WScript.quit
Set objEmail = CreateObject("CDO.Message")
objEmail.From = "richard.rekos@questionmark.com"
objEmail.To = "richard.rekos@questionmark.com"
objEmail.Subject = "AT Output"
objEmail.Textbody = "AT Output"
objEmail.AddAttachment "c:\assettracker\data\strMachine.xml"
objEmail.Send
WScript.quit