Emailer.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Goober
Forum Newbie
Posts: 9
Joined: Wed Jun 25, 2003 10:29 pm
Location: Little Elm, Texas

Emailer.

Post 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?
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post 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.
Post Reply