view gpp/mailer/management/commands/send_mail.py @ 199:217119c87a06

Fix #72: update to 1.1.7 of the MarkItUp! editor.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Apr 2010 18:56:30 +0000
parents aef00df91165
children
line wrap: on
line source
"""send_mail is a custom manage.py command for the mailer application.
It is intended to be called from a cron job periodically to send out queued
email in bulk. This avoids doing the mailing on the HTTP request processing.
"""
from django.core.management.base import NoArgsCommand

import mailer


class Command(NoArgsCommand):
    help = "Run periodically to send out queued email."

    def handle_noargs(self, **options):
        mailer.send_queued_mail()