RE: [PHP] Webmail with Attach

From: Date: Tue, 08 Jan 2002 22:52:33 +0000
Subject: RE: [PHP] Webmail with Attach
Groups: php.general 
Request: Send a blank email to php-general+get-79827@lists.php.net to get a copy of this message
> I need that that my webmail can send mail with many attach. > How can I do it? You could either ask the user how many attachments they want, and present that number of <INPUT TYPE=FILE> fields, or you can grab the file attachment from the user, store it in a uniquely-named temporary directory, get another, and another, and store them all in the temp directory until the user says "right, that's it" at which point you read all the files in your directory and send them as attachments. You've got the code right for sending one attachment, sending mutliples is just another loop in the email assembly code. Jason

« previous php.general (#79827) next »