email in separate thread

J

joeygartin

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!
 
A

Aahz

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top