Re: best way to send email w/o blocking?
On Jul 6, 12:35 am, kevin [EMAIL PROTECTED] wrote: What are your recommendations for sending email without blocking? Because I can imagine several ways, but maybe there's some niceness I'm not aware of. I actually spawn off a new thread that does some verification and then sends the email and exits. It's a bit heavyweight, I admit, but it allows you to take as much time as you want without interfering with the user experience. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: best way to send email w/o blocking?
On Sonntag, 6. Juli 2008, kevin wrote: I'm sending email from my webapp using python's builtin smtplib, but I'd rather the user experience not block on this sending. What are your recommendations for sending email without blocking? I always send mails to localhost where I have an MTA (Postfix here) running. It will accept the email instantly and queue it. Hardly any delay that blocks the application. Cheers Christoph -- When you do things right people won't be sure you've done anything at all. signature.asc Description: This is a digitally signed message part.
Re: best way to send email w/o blocking?
Nice, Good links Aaron. NOTE: the demisauce code has made one key change. It allows an interval of zero, which indicates that a task should only run once. On Jul 6, 12:48 pm, Aaron R [EMAIL PROTECTED] wrote: Kevin; I had the same need and ended up following Alberto's advice here:http://groups.google.com/group/pylons-discuss/browse_frm/thread/f4937... Here is an example of usage:http://code.google.com/p/demisauce/source/browse/demisauce/trunk/demi... Aaron On Jul 6, 1:51 am, Christoph Haas [EMAIL PROTECTED] wrote: On Sonntag, 6. Juli 2008, kevin wrote: I'm sending email from my webapp using python's builtin smtplib, but I'd rather the user experience not block on this sending. What are your recommendations for sending email without blocking? I always send mails to localhost where I have an MTA (Postfix here) running. It will accept the email instantly and queue it. Hardly any delay that blocks the application. Cheers Christoph -- When you do things right people won't be sure you've done anything at all. signature.asc 1KDownload --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---