lostcontrol Posted November 19, 2011 Report Posted November 19, 2011 I am using the VB script below, but want to use the AddAttachment option. Trouble is, when I un-comment & insert a file to attach, CX-Supervisor throws an error saying that the function is not supported 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
lostcontrol Posted November 23, 2011 Author Report Posted November 23, 2011 Solved, thanks to MyOmron.com!! It appears that I was using the .addattachment function incorrectly... I was using: r.addattachment = "C:\MyFile.txt" Whereas I should of been using: r.addattachment "C:\MyFile.txt" The '=' was the bit that was hanging me up. Now though, when I look back at the example (& probably some of the Microsoft examples), it does not have the '=' either... :hitit: Thanks to Jean-Pierre at MyOmron.com for spotting the simple oversight. :notworthy:
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now