Trouble is, when I un-comment & insert a file to attach, CX-Supervisor throws an error saying that the function is not supported
Quote
This can be achieved with the standard Microsoft object CDO.Message. This requires the use of the following VBScript:
set r = createobject ( "CDO.Message")
r.from = "automate3@orange.fr"
r.to = "Durand@eu.omron.com"
r.subject = "test-mail Cx supervisor"
r.TextBody = "alarm flag"
r.Configuration.fields.item ( "http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
r.Configuration.fields.item ( "http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.orange.fr"
r.configuration.fields.update
'r.addattachment ....... file here?
r.send
This script can be executed in a CX-Supervisor script.
set r = createobject ( "CDO.Message")
r.from = "automate3@orange.fr"
r.to = "Durand@eu.omron.com"
r.subject = "test-mail Cx supervisor"
r.TextBody = "alarm flag"
r.Configuration.fields.item ( "http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
r.Configuration.fields.item ( "http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.orange.fr"
r.configuration.fields.update
'r.addattachment ....... file here?
r.send
This script can be executed in a CX-Supervisor script.
All of the microsoft references to this contain the same script, but show the attachment working. I am sure I have used this in another VB script in another application.
There must be a reason the r.addattchement is commented out..??
I have another way to send attachments, but that also has issues as I cannot get the message body how I would like it... yet that is anyway
Sign In »
Register Now!
Help



Back to top








