multi-part mime and e-mail messages

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

multi-part mime and e-mail messages

Post 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.
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post 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
Post Reply