Re:I only know PHP. How do I write a Web application in Python?
by zzzeek on Sunday May 06, 2012 @07:02PM
(#3936711)
emails typically get fired off as part of a post-commit hook. Pyramid's transaction manager has explicit support for this pattern - as you establish "emails" within your trans, the actual send operation is deferred til after the transaction proceeds.
Yes, they these clearly do belong in the same transaction. Inserting a congratulations email into the email queue doesn't.