Send mails in 'small' batches so that if the task retires or runs
twice fewer people get multiple copies.  I don't think there is
transactional email ;)



Robert






On Tue, Jan 11, 2011 at 19:06, pdknsk <[email protected]> wrote:
> I currently use this in a task.
>
> for recipient in recipients:
>    msg.to = recipient
>    msg.send()
>
> This works, but there is a problem. When send() fails so does the
> task, and all mails sent so far are send again in the task retry. What
> I'd like sth. like mail.batch(recipients), which guarantees that
> either all mails or none are put into the mail queue.
>
> I've got another question, about quotas. What happens when the
> recipients/minute quota is exceeded? Does send() fail then, or is it
> automatically throttled?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to