Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CDONTS File Attachment

Status
Not open for further replies.

gio2888

Technical User
Oct 26, 2000
64
US
Heres my problem....I am getting an error for this line.
The error number is '80004005'

file = request("file")

-> mailodj.AttachFile(file)

the file is coming from another page where the input type = "file".

 
You will probably have to upload the file to the server before being able to attach it to email. The value in 'file' will be the physical path to the file on the client computer. The error is probably because that path could not be found on the server.
 
From memory with CDOSYS (similar to CDONTS) you pass in a string filepath to the addattachment method, not a file stream itself. codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
<insert witticism here>
 
i think u should use something like this:
< input type=&quot;file&quot; name=&quot;xxxx&quot;>
And when u request for the name of the file:
file1=Request(&quot;xxxx&quot;) I hope that tomorow I'll still be alive and kicking.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top