On Fri, Sep 18, 2009 at 10:13 PM, aa56280 <aa56...@gmail.com> wrote: > > When a new instance of some object is created, I need to send out X > number of emails. X could potentially mean hundreds of emails. > > What would be the most efficient way to do this? > > I know if I use send_mass_mail() it could potentially hang for quite a > long time. > > Any thoughts greatly appreciated. >
The way I have handled this in the past is to create a simple app that you can run from the command line. I had it check a table that was updated with the list of emails to send and set it up as a scheduled task (cron job) for every 20 minutes or so. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---