For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > December 2007 > Attach multiple files









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Attach multiple files
Jyo

2007-12-31, 7:02 pm

Hi All!

I have problem regarding multiple file attachment. Can any one help
regarding script like gmail provides for attach a file with remove
link ? Also please note that this code should compatible with MAC -
safari browser.

Thanks & Regards,
Jyotsna.
Rik Wasmus

2007-12-31, 7:02 pm

On Mon, 31 Dec 2007 16:19:03 +0100, Jyo <jyotsna.purkar@gmail.com> wrote:
> I have problem regarding multiple file attachment. Can any one help
> regarding script like gmail provides for attach a file with remove
> link ? Also please note that this code should compatible with MAC -
> safari browser.


Some pointers:
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?
--
Rik Wasmus
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com