File Loading

  • Thread starter Thread starter Jack
  • Start date Start date
J

Jack

Hi,

I'm wanting to email a file from a fixed location (c:\temp\file.doc).
This sounds easy but I'm having a few problems! I have no problem when
using a HtmlInputFile control but I'm wanting to just pick up the file
programmically without user intervention.

Thanks,
Jack
 
(e-mail address removed) (Jack) wrote in
Hi,

I'm wanting to email a file from a fixed location (c:\temp\file.doc).
This sounds easy but I'm having a few problems! I have no problem when
using a HtmlInputFile control but I'm wanting to just pick up the file
programmically without user intervention.

Take a look at the System.IO classes

How does your mail component expect the file to be passed? As a File
Stream? Or just a filename location?
 
If the file is on the client PC, you CAN do it but you'll need an ActiveX
control or some other kind of thick client, since HTML/script doesn't have
permission to the client's file system.

If the file is on the server then you'll need to use the basic file
functionality in the System.IO namespace.
 
Back
Top