$headers
$headers :
Generate and send multipart emails in batch mode.
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_Batch('from_email@example.com');
foreach($emails as $m) {
$email->setSubject($m['subject']);
$email->setTo($m['to']);
$img_id = $email->addAttachment('/var/www/html/img/pic.jpg', 'image/jpg');
$email->addTextMessage($m['content']);
$email->sendMail();
}
$email->close();
The configuration parameters are the one for Mail::factory with the 'mail_' prefix not to conflict with the other parameters.