Do you have a question? Post it now! No Registration Necessary. Now with pictures!
December 31, 2007, 3:19 pm
rate this thread
Re: Attach multiple files
1. Use a session.
2. Let the user upload files without sending the message immediately.
3. Store the files somewhere safe, delete them on session destroy/user
clicks remove link.
4. On send, retrieve the contents of the files and add them in a multipart
mail message (look at http://pear.php.net for some nice code that will
make this easy).
However, before you do all this, consider: aren't you writing something
that has been done to death, and maybe there's allready code out there
that does exactly what you want?