Re: Re: mail() - how to attach file to the message???

From: Date: Wed, 09 Jul 2003 20:56:35 +0000
Subject: Re: Re: mail() - how to attach file to the message???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154631@lists.php.net to get a copy of this message
Also note that the uploaded file will be in the $_FILES[] array. http://us4.php.net/features.file-upload --- Mark <mark_weinstock@yahoo.com> wrote: > From your question, it seems you're more concerned with how to get > the file from the user to the server. To upload a file, you need > the > following format for your web form: > > <form action="upload.php" method="post" > enctype="multipart/form-data"> > Upload file: <input type="file" name="upfile"><br> > <input type="submit" value="submit"> > </form> > > That will let you move the file to the server. How you email it > from > their is a whole 'nuther matter. > > > > --- szparag <szparag@tlen.pl> wrote: > > ok. > > > > i have those classes. > > but if it is possible i would like to send message with file > > attachment without using classes. > > > > i know that it should look something like: > > in form : <input type=file name=attach> > > > > in script run be something like: > > > > > > if (is_uploaded_file($attach)) > > { > > $headers .= "MIME-Version: 1.0\r\n"; > > > > $headers .= "Content-Type: ".$attach_type."; > > name=".$attach_name."; > > Content-Disposition: attachment"; > > $headers .= "X-Attach: $attach"; > > } > > > > > > but it doesn't work.i miss something. > > > > szparag > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > ===== > Mark Weinstock > mark_weinstock@yahoo.com > *************************************** > You can't demand something as a "right" unless you are willing to > fight to death to defend everyone else's right to the same thing. > *************************************** > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== Mark Weinstock mark_weinstock@yahoo.com *************************************** You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing. *************************************** __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com

« previous php.general (#154631) next »