I've built a newsletter app that currently cycles through 500+ emails
and I'd like to have it scale to handle more.
Currently I just have code like this in my view:
for recipient in email_list:
msg = EmailMultiAlternatives(email.subject, email.message_text,
email.sender, [recipient])
msg.attach_alternative(email.message_html, 'text/html')
msg.send()
it seems to hang up the browser for quite a while with even just a few
emails. What is the best way to do this and give the user confirmation
that the email has been sent to everyone?
Should I fork off a new process? If so, how can I be sure it finishes
successfully?
--
Pete
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---