PEAR classes to deal with creation and manipulation of MIME messages. WWW: http://pear.php.net/manual/en/package.mail.mail-mime.php