Sign in to follow this  
Followers 0
lostcontrol

Send Emails with Attachments

2 posts in this topic

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

Share this post


Link to post
Share on other sites
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:

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0