Attaching a file using CDOSYS

M

Martin

Hello,
I have an ASP form that a person fills out information on and then
uploads a file from their local computer to a designated folder on our
server.
I am using an ADO Upload script to do this.
That works good.

My problem is, I need to use CDOSYS to email the form information and
also the uploaded file as an attachment.
I have gotten to the point where I can email the info on the form but
the file that is supposed to get emailed as an attachment comes across
as a "ATT?????.ATT" file. Unreadable.

Something that confuses me is all the examples I see usually look like
this:

..AddAttachment "c:\Attachment.txt"
or
..AddAttachment "//file/upload/attachment.txt"

But how can I specify a file since I don't know what the name or file
type the person may upload?

Any help is greatly appreciated,
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top