MIME format

From: Date: Sun, 11 Nov 2001 16:58:26 +0000
Subject: MIME format
Groups: php.general 
Request: Send a blank email to php-general+get-74178@lists.php.net to get a copy of this message
Can someone help? I'm trying to figure out how to attach my image.png that I create on the fly. This would work if I had mime text. What's wrong with this? How do I conver $image to mime format or ... how shlould I approach this problem? <?php ---snip--- ImagePNG($image); mail("jtjohnston@courrier.usherb.ca", "Test Image", "Test message","Content-Type: multipart/mixed; boundary="------------15E3B1D587950C2CAADCBF93" This is a multi-part message in MIME format. --------------15E3B1D587950C2CAADCBF93 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit --------------15E3B1D587950C2CAADCBF93 Content-Type: image/png; name="postcard10.png" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="postcard10.png" $image --------------15E3B1D587950C2CAADCBF93-- "); echo "mail sent"; ?>

« previous php.general (#74178) next »