PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail_Queue » Bug #4092

sendMail() doesn't flag mail as sent

Details

Submitted2005-04-06 23:16 UTC
Fromtoma at etree dot org
Assignedquipo
StatusClosed
PackageMail_Queue
PHP Version5.0.3
OSLinux
Roadmaps(Not assigned)

Comments

[2005-04-06 23:16 UTC] toma at etree dot org

Description:
------------
The example 44-5 doesn't work because emails sent using that method are not flagged as sent using the setAsSent method.

work around:

// loop through the stored emails and send them
while ($mail = $mail_queue->get()) {
$result = $mail_queue->sendMail($mail);
$mail_queue->container->setAsSent($mail);
}
?>