Re: it's frustrating

From: Date: Thu, 17 May 2001 14:28:07 +0000
Subject: Re: it's frustrating
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-7674@lists.php.net to get a copy of this message
Thanks Brian for your fast respond. I tried but still the same: it doesn't work. I used the following code: ----------------------------------------------------------- $filename = 'background.gif'; $myimage = fread($fp = fopen($filename, 'r'), filesize($filename)); fclose($fp); $content = chunk_split ( base64_encode ( $myimage ) ); $boundary = 'NEXT_PART'; $message= "Content-Type: multipart/mixed; boundary='$boundary'\n"; $message.= "Mime-Version: 1.0\n"; then in the message: $message.= "--$boundary\n"; $message.= "Content-Type: image/gif; name='my_image.gif'\n"; $message.= "Content-Transfer-Encoding: base64\n"; $message.= "Content-Disposition: attachment\n\n"; $message = $content; // here I used $message .= $content; mail("webmaster@mweller.de","", "", $message); ----------------------------------------------------------- ""Brian Paulson"" <webmaster@chieftain.com> schrieb im Newsbeitrag news:EPEKKECOPFJIPOEBDFAFIEIFCDAA.webmaster@chieftain.com... > Are you trying to attach it or put the image in the body of the message? > > If you are trying to attach it try looking at this message from the > archives > > > http://marc.theaimsgroup.com/?l=php-general&m=99003506223055&w=2 > > Thank You > Brian Paulson > Sr. Web Developer > The Pueblo Chieftain > www.chieftain.com > 1-800-279-6397 >

« previous php.windows (#7674) next »