multi-part mime and e-mail messages
Posted: Tue Dec 02, 2003 9:25 pm
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.
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.