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?
Emailer.
Moderator: General Moderators
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.
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.