Page 1 of 1

multi-part mime and e-mail messages

Posted: Tue Dec 02, 2003 9:25 pm
by microthick
This is to all you advanced php-ers:

When someone has some free time, can you write up a nice, detailed tutorial for sending multi-part e-mail messages?

I know how to send plain text e-mails.

I know how to send html e-mails.

I even know how to send e-mails with encoded attachments.

But how do I send an e-mail with html text and embedded images? I don't want to go <img src="http://www.myserver.com/myimage.gif"> in my html e-mails because Hotmail and Yahoo! can block those types of images from loading (and will probably default to doing so soon) and Outlook (2003 Professional, at least) by default blocks those types of images from loading.

I want to be able to insert images by going <img src="image.gif"> in my html e-mail and I think that should be possible if I attach the image to the html. I think I remember reading that binaries should be base 64 encoded.

I found one tutorial at Zend.com but it was mostly theory and no code and I didn't know how to appropriately create my headers.

Much appreciated.

Posted: Wed Dec 03, 2003 7:40 am
by kendall
Mirco,

Yo man...i don't know if this will help but i had a similar situation...its just that i had my images 'attached' its something to do with a 'desposition' header....anyway i have a thread about it some where in this forum...do a search for my name and see if you come up with it...maybe theres some usefull hints you can take up.

Kendall