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("[EMAIL PROTECTED]","", "", $message);
-----------------------------------------------------------
""Brian Paulson"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]