[Zope] sendmail not part of a transaction
Michel Pelletier
michel@digicool.com
Thu, 26 Aug 1999 00:30:39 -0400
"Jay, Dylan" wrote:
>
> Not sure if this is a bug but I doubt it. If an exception occurs after a
> sendmail tag the mail is still sent. It should probably be part of a
> transaction.
>
Yes you're right, the sendmail tag sends the mail straight out. Queing
and delaying delivery for the end of the transaciton however is asking
for trouble, Zope's smtp code is fragile as it is, since it predates
smtplib.
I would check for all your error conditions first, and let the transport
of mail be the very last option. Also this way you can tell if any of
the 'important' stuff failed or not if the mail doesn't get delivered.
not-all-side-effects-can-be-transacted-ly' yours,
-Michel
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )