Page 1 of 1

Emailer.

Posted: Wed Jun 25, 2003 10:29 pm
by Goober
Greetings,

I was wondering. Is it possible to receive an image from a form and email it to a desired email address, without it being on the server permanently?

After thinking about his breifly, I thought of the idea of uploading the image into a junk directory, email it to whomever, then delete the image once it's completed. Is this plausable?

Posted: Thu Jun 26, 2003 7:20 am
by releasedj
If you just have an email form where someone uploads the attachment and sends the email in one go, the you can attach the file form the temporary directory used during a file upload.

If you're creating an email client or something similar where you want to allow someone to upload a file, and then do some other stuff while keeping the file, then you'll need to use a temporary directory that you do some garbage collection on now and then to remove old files.