> Of course, once you plod through these, you'll probably want to take
> Ken's advice: find an object or API that rolls all this up for you.
> I put that together in my early days of using php. I'm sure I'd do it
> differently now but, primitive though it was, it worked and I
> learned a
> lot about how emails are constructed.
> That said, I'm surprised that you'd need to use something so
> primitive to construct a message. Surely there's some other object
> you can use that allows you to construct a message in a more user
> friendly way?
Hence my comment on 23 May 2008 about only using PHP's mail() function
to send text emails and using Richard Heyes' mime mail class (PHP 4
and 5 versions) for anything more complex.
<http://www.phpguru.org/static/mime.mail.html>
Note this is the same class used to power phplist.
Jeffrey
—
Jeffrey Barke
Senior developer / information architect
theMechanism
New York
440 9th Avenue
8th Floor
New York, NY 10001-1631
e: jeffrey.barke at theMechanism.com
w: http://theMechanism.com
t: +1 212 404 3150
f: +1 212 404 3228
—
theMechanism is a multi-disciplinary design agency with offices in New
York, London and Durban, South Africa.