I would like to share with you some different ideology...
I don't like to use any external software to work aside with main
application. Very often, it's just imposible to use cron on client's
hyper-hostings.
The idea is simple, use ajax.

I got very simple mechanism that uses some javascript to send
asynchronous requests to the sending script. I store newsletters
prepared earlier(with tinymce) in one table, subscribers (split in
groups) in another and smtp accounts in another.
To send emails, user have to prepare sending session. He choose smtp
account, subscribers group and newsletter from combobox'es and click
prepare. combined id's populate session table in amount of rows equal
to emails in chosen group.
with little optimalization, that process is very fast even for
hundreds of thousands of emails.
finally, user clicks to send emails and little js script send
asynchronously a sending request. after every email succesfully sent,
it's information in session table is updated to check it as send.
pros.
- you never lost any email because of timeout
- you can show progress bar to user
- you may start and stop whole process whenever needed
cons
- user have to prepare and start sending process manualy. sometimes it
may be needed to do it absolutely automatic.

I hope it would help


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to