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("[EMAIL PROTECTED]", "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"; ?> -- PHP General 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]