Home » Mail » Mail_Queue » Bug #7886
sendMailsInQueue: problem sending in same second as put
Details
| Request #7886 | sendMailsInQueue: problem sending in same second as put |
|---|---|
| Submitted | 2006-06-13 14:46 UTC |
| From | hkrems at yahoo dot de |
| Assigned | quipo |
| Status | Closed |
| Package | Mail_Queue |
| PHP Version | 5.1.2 |
| OS | Max OS X |
| Roadmaps | (Not assigned) |
Comments
[2006-06-13 14:46 UTC] hkrems at yahoo dot de
Description:
------------
put mail(s) in an empty queue with $seconds_to_send = 0.
a few lines later do sendMailsInQueue().
the mails created above stay in the queue (none is sent) when
sendMailsInQueue is called in the same second of putting.
maybe this is because Mail_Queue_Container_db::_preload()
searches
... AND date("Y-m-d H:i:s") > time_to_send ...
does it make sense to change the comparison operator to >= ?
a workaround is to put mail(s) in the queue with
$seconds_to_send set to -1: the mails are processed.