Home » Mail » Mail_Queue
Class for put mails in queue and send them later in background.
This package is unmaintained.
Download latest release 1.2.7 (there is a newer Composer installable version)
License: BSD
Description
Class to handle mail queue managment.
Wrapper for PEAR::Mail and PEAR::DB (or PEAR::MDB/MDB2). It can load, save and send saved mails in background and also backup some mails.
The Mail_Queue class puts mails in a temporary container, waiting to be fed to the MTA (Mail Transport Agent), and sends them later (e.g. a certain amount of mails every few minutes) by crontab or in other way.
Documentation
Maintainers
- Lorenzo Alberton (quipo) — lead, active
- Till Klampaeckel (till) — lead, active
- Radek Maciaszek (chief) — lead, inactive
- Marco Kaiser (bate) — lead, inactive
Dependencies
Required
Optional
Releases
- 1.2.7 (stable, 2011-06-30)
Release notes
License: BSD
* Implement Feature #18256: Addition to Mail Queue Tutorial [quipo]
* Implement Feature #18038: Reaching the set limit should not generate an error [till] - 1.2.6 (stable, 2010-10-25)
Release notes
License: BSD
Bug #17993 Package installed in wrong directory
- 1.2.5 (stable, 2010-10-25)
Release notes
License: BSD
Bug #17991 Package installed in wrong directory
- 1.2.4 (stable, 2010-10-25)
Release notes
License: BSD
Bug #17991 Package installed in wrong directory
- 1.2.3 (stable, 2009-09-07)
Release notes
License: BSD
* changed license from PHP to (new and simplyfied) BSD license
* fixed bug #7850 (introduced new method "factory" and helpers getErrors(), hasErrors())
* fixed bug #14626: alternative array container configuration not working
* minor CS fixes (file, class comments) - 1.2.2 (stable, 2008-05-07)
Release notes
License: PHP
- fixed bug #6330: check for lost DB connection in _preload()
- fixed bug #12521: NOTICE: undefined index
- fixed bug #12768: On errors, sendMail() marks mail as sent anyway
- added additional checks for factorySendMail() returned Mail
- better error handling in the MDB2 container
- code cleanup - 1.2.1 (stable, 2007-09-13)
Release notes
License: PHP
- rollout after some month of cvs commit and a new maintainer
- fixed bug #2911: Using an invalid db account results
in a call to undefined function
- the DB container doesn't use DB protected methods anymore
(related to bug #4028)
- removed any MySQL-specific functions from the SQL queries
in the DB container.
- allow multiple recipients (Cc and Bcc) (requests #5707 and #5987)
- fixed bug #7886: sendMailsInQueue: problem sending mails in the same second
they are stored (when sec_to_send = 0)
- fixed bug #8378: disconnect from the SMTP server once it has
sent all the messages, when mail_options['persist'] is set
- fixed bug #8661: wrong date() format in Mail_queue::put()
- fixed bug #9065: MDB2 uses nextID(), not nextId()
- implemented request #2721: you can now use your Mail_Queue Container class
- if there's an error in sendMailsInQueue(), the problematic mail is removed
from the internal sending buffer, and the next mail is processed (bugs #6538,
#9219). NB: the mail is not removed from the db since it could be a temporary
issue. If you want to remove it, you can do it manually with a custom error
handler.
- added new Creole container (Randy Syring)
- fixed bug #4092: flag a mail with setAsSent() method within the sendMail() method
- minor fixes
- switched to package.xml v.2 - 1.1.3 (stable, 2004-11-04)
Release notes
License: PHP
- fix wrong parameter order for PEAR::raiseError() in sendMailsInQueue()
[bug #1990] - thanks Alan Knowles
- some cleanup
- php5 fix: Mail_Queue_Body::try() => _try() [bug #2098] - 1.1.2 (stable, 2004-07-22)
Release notes
License: PHP
- Use PHP's date() function instead of a mysql-specific
NOW() call in the DB container
- Added pgsql schema in the /docs/ dir (thanks Alan Knowles)
- Fixed integer quoting in the DB container (bug #1917) (thanks Alan Knowles)
- DB error reporting now uses toString() (bug #1918) (thanks Alan Knowles) - 1.1.1 (stable, 2004-07-22)
Release notes
License: PHP
- Fixed a buggy implementation of the preload() method
which was causing several problems
- Use DB::modifyLimitQuery() instead of a mysql-specific
LIMIT clause in the DB container
- Added a new MDB2 container - 1.1 (stable, 2004-03-05)
Release notes
License: PHP
- Error management has been rewritten. New error constants are used,
so custom error mgmt is now possible.
- Added a "pearErrorMode" option to specify what to do with Pear_Error
(was: PEAR_ERROR_PRINT by default)
- Added a "sequence" container option to specify the name of the sequence table.
- Moved Mail_Queue_Error class from Mail/Queue/Error.php to Mail/Queue.php.
- Preloading management has been rewritten. The amount of memory used by the
internal buffer can be limited to any chosen value via the setBufferSize() method.
- The put() methods now returns last_inserted_id instead of true
- Fixed error in factorySendMail()
- Fixed: mails weren't set as send when bypassing the queue using sendMailById()
- Fixed: Mail_Queue_Container_mdb didn't accept a 'dsn' as option
- PHP 5 fixes - 1.0 (stable, 2002-12-13)
Release notes
License: PHP
First stable release. Added Lorenzo Alberton to the list of contributors.
Fixed getMailById() in db.php.
Added new container: Mail_Queue_Container_mdb - Storage driver for fetching mail
queue data from a PEAR_MDB database. - 0.9 (beta, 2002-09-22)
Release notes
License: PHP
This is the initial release of the Mail_Queue package.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #143 | Closed | Bug | 2003-10-22 | Mail_Queue_Container_mdb don't accept dsn | |
| #145 | Closed | Bug | 2003-10-22 | [Feature Request] setAsSent in sendMailById | |
| #147 | Closed | Bug | 2003-10-23 | sendMailsInQueue() questionable failure handling.... | |
| #149 | Closed | Bug | 2003-10-24 | error in factorySendMail() | |
| #794 | Closed | Bug | 2004-02-19 | Out of memory | |
| #881 | Closed | Bug | 2004-02-26 | PEAR QA: improvement for get_class()-usage | |
| #1517 | Bogus | Bug | 2004-05-27 | try_sent field | |
| #1916 | Closed | Req | 2004-07-20 | docs need postgresql create table | |
| #1917 | Closed | Bug | 2004-07-20 | postgres not supported due to use of quoted int | |
| #1918 | Closed | Bug | 2004-07-20 | error reporting should use toString() | |
| #1989 | Closed | Bug | 2004-07-27 | db container does not use modify limit query | |
| #1990 | Closed | Bug | 2004-07-27 | pear::raiseError called with wrong parameter order | |
| #2050 | Wont fix | Bug | 2004-08-04 | Messages get sent multiple times | |
| #2098 | Closed | Bug | 2004-08-09 | try() function of Body.php incompatible with PHP5 | |
| #2279 | Bogus | Bug | 2004-09-04 | Doesn't delete mails | |
| #2300 | Closed | Bug | 2004-09-08 | PostgreSQL table definition does not work | |
| #2537 | Duplicate | Bug | 2004-10-15 | Compatibility with PHP5 | |
| #2690 | Duplicate | Bug | 2004-11-04 | Mail::Queue Not PHP 5 Compatible | |
| #2721 | Closed | Req | 2004-11-09 | Overriding MailQueue Container | |
| #2911 | Closed | Bug | 2004-12-06 | Using an invalid db account results in a call to undefined function | |
| #3131 | Closed | Req | 2005-01-07 | Some changes to examples | |
| #3270 | Wont fix | Req | 2005-01-22 | Using several instances of Mail_Queue with one table | |
| #3282 | Closed | Req | 2005-01-24 | Mail/Queue.php, confusion in the mysql table example | |
| #4028 | Closed | Req | 2005-04-01 | MS SQL container && persistant SMTP connection | |
| #4092 | Closed | Bug | 2005-04-06 | sendMail() doesn't flag mail as sent | |
| #4635 | Bogus | Bug | 2005-06-20 | Large body value trouble | |
| #4707 | Closed | Bug | 2005-06-29 | Infinite loop while using get() method | |
| #4748 | Closed | Bug | 2005-07-05 | MySQL Only db function | |
| #4752 | No Feedback | Bug | 2005-07-05 | sendMailsInQueue - Headers are not deserialized | |
| #5547 | Closed | Req | 2005-09-28 | add 'localhost' to $mail_options in documentation | |
| #5707 | Closed | Bug | 2005-10-17 | Bcc functionality lost with Mail::Queue? | |
| #5708 | Closed | Req | 2005-10-17 | Syntax incorrect in constructor Mail_Queue::Mail_Queue() example | |
| #5987 | Closed | Req | 2005-11-16 | Support for Cc and Bcc recipients (patch supplied) | |
| #6192 | Wont fix | Req | 2005-12-08 | Send mails according to priority | |
| #6330 | Closed | Bug | 2005-12-22 | fatal error on line 122 of db.php | |
| #6376 | Closed | Req | 2005-12-30 | Attachments | |
| #6456 | Closed | Req | 2006-01-10 | Mail_Queue_Error::getRecipient() | |
| #6538 | Closed | Bug | 2006-01-20 | Error on mail send causes infinite send loop | |
| #7431 | Wont fix | Req | 2006-04-20 | Extend Mail_Queue to allow prioritisation | |
| #7850 | Closed | Bug | 1.1.3 | 2006-06-09 | constructor doesn't return PEAR Error Object |
| #7886 | Closed | Req | CVS | 2006-06-13 | sendMailsInQueue: problem sending in same second as put |
| #7903 | Closed | Bug | 1.1.3 | 2006-06-14 | Put method sec_to_send to acting as expected |
| #7904 | Closed | Bug | 1.1.3 | 2006-06-14 | Mail_Mime dependency not listed |
| #8287 | Bogus | Bug | CVS | 2006-07-25 | Period in name is stripped? |
| #8378 | Closed | Req | 1.1.3 | 2006-08-07 | Send all messages in one SMTP connection |
| #8381 | Closed | Req | 1.1.3 | 2006-08-07 | Implement force_preload |
| #8395 | No Feedback | Bug | 1.1.3 | 2006-08-08 | setBufferSize( $max_amount_mails + 1 ) increases performance |
| #8655 | Closed | Bug | 1.1.3 | 2006-09-07 | Mail_Queue::put() documentation error (return value) |
| #8659 | Closed | Bug | 1.1.3 | 2006-09-07 | $mail_queue->get() fails with mdb2 container and sqlite |
| #8661 | Closed | Bug | 1.1.3 | 2006-09-08 | date stamp wrong in Mail_queue::put() |
| #8966 | Wont fix | Req | 1.1.3 | 2006-10-11 | Features |
| #9065 | Closed | Bug | 1.1.3 | 2006-10-16 | MDB2 gives an error |
| #9219 | Closed | Bug | 1.1.3 | 2006-11-02 | sendMailsInQueue does not return an ErrorObject |
| #12521 | Closed | Bug | 1.2.1 | 2007-11-24 | Mail_Queue not sending mail |
| #12768 | Closed | Bug | 1.2.1 | 2007-12-23 | On errors, sendMail marks mail as sent anyway |
| #13733 | Closed | Bug | 1.2.1 | 2008-04-21 | sent_time updated on sent failure |
| #13829 | Closed | Bug | 1.2.1 | 2008-05-03 | Fatal error |
| #13906 | Closed | Req | 1.2.2 | 2008-05-15 | encoding problem |
| #14626 | Closed | Bug | 1.2.2 | 2008-09-09 | array container configuration doesn't work while dns does |
| #14627 | Duplicate | Bug | 1.2.2 | 2008-09-09 | array container configuration doesn't work while dns does |
| #14689 | Closed | Doc | 2008-09-22 | User note that is a documentation problem | |
| #14859 | No Feedback | Bug | 1.2.2 | 2008-10-24 | Call to undefined method Mail_Queue_Error::getRecipient() |
| #14921 | Closed | Req | 1.2.2 | 2008-10-30 | Delay in sendMailsInQueue() |
| #14998 | Bogus | Bug | 1.2.2 | 2008-11-12 | Missing error check. |
| #15049 | Closed | Req | 1.2.2 | 2008-11-16 | Count emails in queue |
| #15303 | Bogus | Bug | 1.2.2 | 2008-12-14 | Unserialize throws error |
| #15319 | Duplicate | Bug | 1.2.2 | 2008-12-16 | Bad serialization |
| #16033 | Bogus | Bug | 1.2.2 | 2009-03-13 | PDF attachments not getting through |
| #16064 | Closed | Req | 1.2.2 | 2009-04-03 | add a callback system to allow sent mails to be tracked |
| #16068 | Closed | Req | 1.2.2 | 2009-04-03 | Propogate the greeting sent by the mail server to the client - and onwards. |
| #16207 | Closed | Bug | 1.2.2 | 2009-05-08 | Mail_Queue will NOT accept 'mail_queue2' as a valid entry for mail_table? |
| #16208 | Closed | Bug | 1.2.2 | 2009-05-08 | Fatal error: Call to a member function setOption() |
| #16218 | Bogus | Bug | 1.2.2 | 2009-05-11 | Error on sendMailsInQueue |
| #16230 | Bogus | Bug | 1.2.2 | 2009-05-16 | Call to undefined method Mail_Queue_Error::getRecipient() when send the queue |
| #16264 | Wont fix | Req | 1.2.2 | 2009-05-26 | Work in progress flag |
| #16266 | Wont fix | Req | 1.2.2 | 2009-05-27 | Move sent mails to other table |
| #16580 | Closed | Bug | 1.2.3 | 2009-09-09 | Incorrect install/upgrade path. |
| #16609 | Closed | Bug | 1.2.3 | 2009-09-15 | Call to undefined method |
| #16995 | Closed | Bug | 1.2.3 | 2010-01-14 | mail stops sending from queue intermiddently |
| #16997 | Closed | Bug | 1.2.3 | 2010-01-15 | bad error checking |
| #17014 | Bogus | Bug | 1.2.3 | 2010-01-20 | error object not caught |
| #17153 | Bogus | Req | 1.2.3 | 2010-02-24 | Transaction Support |
| #17255 | Bogus | Req | 1.2.3 | 2010-03-22 | Mail_Queue |
| #17288 | Bogus | Bug | 1.2.3 | 2010-04-03 | No DB.php, but necessary |
| #17316 | Closed | Doc | 1.2.3 | 2010-04-16 | documentation re callbacks |
| #17445 | Bogus | Req | 1.2.3 | 2010-05-27 | Html on Mail_Queue |
| #17521 | Closed | Bug | 1.2.3 | 2010-06-24 | Mail_Queue::getQueueCount returns NULL on success |
| #17598 | Closed | Doc | 1.2.3 | 2010-07-15 | Wrong return description for sendMailById() |
| #17896 | Duplicate | Bug | 1.2.3 | 2010-09-26 | MDB2 Code in Mail_Queue_Container_db::getQueueCount() |
| #17898 | Closed | Bug | 1.2.3 | 2010-09-27 | sendMailById() causes Fatal Error on nonexistant id |
| #17991 | Closed | Bug | 1.2.4 | 2010-10-25 | Package installed in wrong directory |
| #17993 | Closed | Bug | 1.2.5 | 2010-10-25 | Package installed in wrong directory |
| #18038 | Closed | Req | 1.2.6 | 2010-11-09 | Reaching the set limit should not generate an error |
| #18206 | Bogus | Bug | 2011-01-21 | Mail_Queue produces error messages | |
| #18256 | Closed | Doc | Unknown | 2011-02-09 | Addition to Mail Queue Tutorial |
| #18306 | Bogus | Bug | Unknown | 2011-02-24 | PEAR Mail_Queue stops on recipient bad syntax |
| #18391 | No Feedback | Req | 1.2.6 | 2011-03-23 | Metadata |
| #18757 | Closed | Bug | 1.2.7 | 2011-08-24 | Queue.php missing 'new' on line 477. |
| #18971 | Wont fix | Req | SVN | 2011-11-08 | Add error_reporting E_ALL & ~E_STRICT via phpunit.xml |
| #19378 | Closed | Req | 1.2.7 | 2012-04-09 | Cannot preload items: limit |
| #19436 | Wont fix | Req | SVN | 2012-05-24 | Multiple senders by putting mail_options into container |
| #19604 | Wont fix | Doc | 1.2.7 | 2012-09-18 | Documentation lists function which doesn't exist? |
| #19627 | No Feedback | Bug | 1.2.7 | 2012-10-01 | accented letters in email body |
| #19671 | Bogus | Doc | 2012-10-23 | User note that is a documentation problem | |
| #19890 | Feedback | Bug | 1.2.7 | 2013-04-09 | Unable to send mails for some of the mail queue |
| #20059 | No Feedback | Bug | Unknown | 2013-09-03 | aklfklas8 |
| #20976 | Feedback | Bug | 1.2.7 | 2015-10-29 | Making static method non static - isError |
| #23742 | Closed | Bug | 1.2.7 | 2018-03-14 | Deprecated message with PHP 7.1 |
| #27165 | Open | Bug | 1.2.7 | 2022-10-06 | Mail_queue table needs to be updates |