Can someone help? I am trying to attach my image.png that I create on the
fly.
This mime text would work if I had mime text. It's a copy/paste of one I sent myself, so the headers are right?
What's wrong with this? How do I convert my $image to mime format or ... how shlould I approach this problem?
John
<?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--
");
?>