Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Sending attached file with CDO NTS


Message #1 by "Chrilles Wybrandt" <cw.inf@c...> on Fri, 25 Jan 2002 06:37:41
Do I need a download component if I want to make a Send Mail form on my 

web site - AND I want to attach a file as well. I do not want to save the 

file on the server - BUT the file technically uploaded to the server 

before it is send/attached.



I have been told both Yes an No!!



Please help me with an explanation.



Chrilles
Message #2 by "Martin Grundy" <martin.grundy@s...> on Fri, 25 Jan 2002 08:34:02
My understanding of the situation is this:



Moving files from the server to your PC is called "download".

Moving files from your PC to the server is called "upload".

By definition, CDONTS runs on the server.

If you want to attach a file to a CDONTS e-mail, the file to be attached 

must be located on the server.

Therefore, you need an upload component to copy the attachment from your 

PC to the server in order for it to be available to CDONTS.

Having sent the e-mail, it is possible to use the FileSystem object (from 

an ASP page) to delete the temporary copy from the server.



For all I know, there may be software out there that does all this for 

you: upload, attach, e-mail, delete, but I have always done it by hand.



Hope this helps,



Martin



> Do I need a download component if I want to make a Send Mail form on my 

> web site - AND I want to attach a file as well. I do not want to save 

the 

> file on the server - BUT the file technically uploaded to the server 

> before it is send/attached.

> 

> I have been told both Yes an No!!

> 

> Please help me with an explanation.

> 

> Chrilles

  Return to Index