Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

email in separate thread

1 view
Skip to first unread message

joeygartin

unread,
Apr 10, 2009, 10:36:24 AM4/10/09
to
Greetings,

Disclosure: I am a total newbie!

I am building an application Django and come to a dilemna when sending
off emails. I have an application that sends off an email after a
customer has filled out a form, actually it sends off 7 emails.

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
emails off

OR

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.

I have posted this problem on the Django users group, but did not
really get a usable response. If any of you have dealt with this or
know of an actual solution, please help.

Thank you!

Aahz

unread,
Apr 10, 2009, 10:47:57 PM4/10/09
to
In article <66f23ffc-345e-4603...@j12g2000vbl.googlegroups.com>,

joeygartin <joeyg...@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
>emails off
>
>OR
>
>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 (aa...@pythoncraft.com) <*> http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?

0 new messages