Home » Mail » Mail_Queue » Bug #4092
sendMail() doesn't flag mail as sent
Details
| Submitted | 2005-04-06 23:16 UTC |
|---|---|
| From | toma at etree dot org |
| Assigned | quipo |
| Status | Closed |
| Package | Mail_Queue |
| PHP Version | 5.0.3 |
| OS | Linux |
| 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);
}
?>