@@ -64,13 +64,18 @@ or all managers as defined in the ``MANAGERS`` setting by calling::
6464Clear queue with command extensions
6565===================================
6666
67- With mailer in your INSTALLED_APPS, there will be three new manage.py commands
68- you can run:
67+ With mailer in your `` INSTALLED_APPS `` , there will be four new
68+ `` manage.py `` commands you can run:
6969
7070* ``send_mail `` will clear the current message queue. If there are any
7171 failures, they will be marked deferred and will not be attempted again by
7272 ``send_mail ``.
7373
74+ * ``runmailer `` similar to ``send_mail ``, but will keep running and checking the
75+ database for new messages each ``MAILER_EMPTY_QUEUE_SLEEP `` (default: 30) seconds.
76+ Can be used *instead * of ``send_mail `` to circumvent the maximum frequency
77+ of once per minutes inherent to cron.
78+
7479* ``retry_deferred `` will move any deferred mail back into the normal queue
7580 (so it will be attempted again on the next ``send_mail ``).
7681
@@ -102,7 +107,12 @@ this command from the virtualenv. The same, naturally, applies also if you're
102107executing it with cron. The `Pinax documentation `_ explains that in more
103108details.
104109
110+ If you intend to use ``manage.py runmailer `` instead of ``send_mail `` it's
111+ up to you to keep this command running in the background. This can be achieved
112+ using `supervisord `_ or similar software.
113+
105114.. _pinax documentation : http://pinaxproject.com/docs/dev/deployment.html#sending-mail-and-notices
115+ .. _supervisord : http://supervisord.org/
106116
107117Controlling the delivery process
108118================================
0 commit comments