$headers
$headers :
Generate and send multipart emails.
This class is just a small wrapper around the PEAR packages Mail and Mail/mime.
Class to easily generate multipart emails. It supports embedded images within the email. It can be used to send a text with possible attachments.
The encoding of the message is utf-8 by default.
Usage example:
$email = new Pluf_Mail('from_email@example.com', 'to_email@example.com',
'Subject of the message');
$img_id = $email->addAttachment('/var/www/html/img/pic.jpg', 'image/jpg');
$email->addTextMessage('Hello world!');
$email->addHtmlMessage('Hello world!');
$email->sendMail();
The configuration parameters are the one for Mail::factory with the 'mail_' prefix not to conflict with the other parameters.