Results 1 to 2 of 2
Mar 19, 2002, 14:41 #1
- Join Date
- Mar 2001
- Ottawa, Ontario, CANADA, North America, Earth
- 0 Post(s)
- 0 Thread(s)
CDONTS and AttachFile error message
Need some help please.
Currently, I have a form that a user can enter the subject line content and the email body content. They can then send the email which I have set up to use CDONTS. This works fine.
Now I want to add in the ability to attach a file (it will most likely be a MS Word document) to the email being sent out.
I would like to use CDONTS's AttachFile but it's not working for me. I've read up on it and it seems fairly simple except that I'm getting the following error message.
set objMail = createobject("CDONTS.NewMail")
objMail.send "email@example.com", "firstname.lastname@example.org", "Testing attachfile", "Did you get the attachment"
set objMail = nothing
[And yes, the file does exist.]Karen
"Far away there in the sunshine are my highest aspirations. I may not reach them, but I can look up and see their beauty, believe in them, and try to follow where they lead." — Louisa May Alcott
Mar 20, 2002, 01:56 #2