« Did anyone notice Flickr is now in Gamma? | Main | God Thinks Bush is an Ass »

Sending multipart email using PHP mail function

This site has a great tutorial. The PHP manual recommend PAIR::Mail which I haven't checked out yet.

Summary

In this article, you probably learned a lot more about email than you ever wanted to know. That intimate knowledge about what makes email tick allowed us to do some pretty special things with PHP's deceptively simple mail function.

we learned how to manipulate email headers to play with the recipients of an email
we saw the headers that permit you to send HTML email
we combined the HTML and text versions of an email into a single, mixed message
and finally...

we brought it all together with a couple of new tricks to send email messages with file attachments.

Technorati Tags: , ,

Comments

nico

Thanks for the links. Actually it's PEAR::Mail :)

rolfen

I used ezcComponents. I trimmed out all the unneded stuff and left only the necessary (base component, autoloader directory and mail component). That added 1.something megs to my project but meh the great syntax and working code makes up for it :-)

Post a comment

Comments are moderated, and will not appear on this weblog until the author has approved them.

If you have a TypeKey or TypePad account, please Sign In.