Probably best to add the emails to a queue and then let a scheduler task 
work its way through the queue separate from the controller. You could also 
make a modified version of web2py's mail class that sends multiple emails 
per smtp connection to speed things up. 

On Sunday, March 10, 2013 2:47:27 PM UTC-5, Vasile Ermicioi wrote:
>
> hi,
> web2py mail.send checks if mail is sent or not,
> so if I want to send 1000 emails it will take a while or will break at 
> some point because my server execution time is 30s
> so please advise me what to do in this case
>
> thank you
>
> PS: flask-mail has such an example 
> http://pythonhosted.org/Flask-Mail/
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to