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

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: mail() - how to attach file to the message???
Groups: php.general 
Request: Send a blank email to php-general+get-154625@lists.php.net to get a copy of this message
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

« previous php.general (#154625) next »