Re: MIME format

From: Date: Sun, 11 Nov 2001 17:37:44 +0000
Subject: Re: MIME format
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74179@lists.php.net to get a copy of this message
JT, Try the MIME and SMTP classes at www.phpguru.org. I am using with great success. Richard occasionally appears here on the lists... Regards, =dn ----- Original Message ----- From: "jtjohnston" <jtjohnston@courrier.usherb.ca> To: <php-general@lists.php.net> Sent: 11 November 2001 16:58 Subject: [PHP] MIME format > 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"; > ?> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#74179) next »