email in separate thread
aahz at pythoncraft.com
Sat Apr 11 04:47:57 CEST 2009
In article <66f23ffc-345e-4603-9519-cd122a1163b2 at j12g2000vbl.googlegroups.com>,
joeygartin <joeygartin at gmail.com> wrote:
>The problem is the page hangs while the emails are sent. My current
>hosting situation does not give me direct access to an email queue.
>So I have two options (that I can think of):
>1) Write the email information to a file and then run a cron job in
>the background that routinely checks the file and sends the necessary
>2) Spin-off a thread (which I have no background with at all!) for the
>emails and be able to redirect the user to the next page.
2a) Fork off a separate process
How frequently do you need to send e-mail?
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Why is this newsgroup different from all other newsgroups?
More information about the Python-list