bodmin has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am using the MIME::Lite module to write an email programme.

I am allowing users to attach files to the emails.

Is there a way to send the mail with the attachment without uploading the file from the client to the server?

If not (which I presume not), is there a temporary folder which I can use (server is unix) were I can upload to, then once the email has been sent, delete the file automatically?

Replies are listed 'Best First'.
Re: Upload a file temporarily
by ChrisR (Hermit) on May 26, 2004 at 14:53 UTC
    If you are useing CGI to get your parameters, which I hope you are, try the tmpFileName method of CGI. I have done the same thing but I used Mail::Sender.