Hi, I have a site which is based on Zope and Plone, where users can shop around (shopping cart is stored in SESSION objects) and a separate part of the site (backend, Plone) where newsletters and such can be sent out. I have a problem however with duplicate emails being sent out to the subscribers, and this is most likely due to conflict errors being raised.. The event.log file says: 2008-02-18T21:05:23 INFO ZPublisher.Conflict ConflictError at /VirtualHostBase/http/www.site:80/VirtualHostRoot/levanger/plone/site_newsletter/nyhetsbrev-130208/testSendToMe: database conflict error (oid 0x92aa, class BTrees._OOBTree.OOBTree, serial this txn started with 0x0373d8eef99cf5bb 2008-02-18 21:02:58.503076, serial currently committed 0x0373d8f1624479aa 2008-02-18 21:05:23.031441) (58 conflicts (0 unresolved) since startup at Thu Jan 24 17:34:08 2008) Now, those errors aren't a big deal in themselves, but it is a problem when the system sends out duplicate mail messages to lots of visitors. I've seen some blurbs about deferring sending emails until the transaction has been completed, and I just discovered zope.sendmail which is said to defer sending emails until the transaction has succeeded. Is zope.sendmail a good choice? Will it work with Zope 2.9.8? Thanks, Morten
On Mon, Feb 18, 2008 at 10:23 PM, <morten@nidelven-it.no> wrote:
Will it work with Zope 2.9.8?
Yup. Nuxeo used it for it's webmail app, so it works at least. Don't know if we used the deferred email sending, though. -- Lennart Regebro: Zope and Plone consulting. http://www.colliberty.com/ +33 661 58 14 64
On Mon, Feb 18, 2008 at 11:12:27PM +0100, Lennart Regebro wrote:
On Mon, Feb 18, 2008 at 10:23 PM, <morten@nidelven-it.no> wrote:
Will it work with Zope 2.9.8?
Yup. Nuxeo used it for it's webmail app, so it works at least. Don't know if we used the deferred email sending, though.
It would be quite hard to use zope.sendmail without the deferred email bit. It was designed from the very start to defer email sending to successful transaction commits (but due to a bug didn't actually do so for a couple of years -- oops). Marius Gedminas -- An algorithm must be seen to be believed. -- D.E. Knuth
See the discussion on plone-dev a while ago, "link integrity checking will make Plone 3.0 broken and dangerous". Worth trying with 2.9.8 at least. Laurence --On 18. August 2007 21:03:43 +0200 Andreas Jung <lists@zopyx.com> wrote:
--On 23. Juli 2007 08:53:32 +0200 Wichert Akkerman
<wichert@wiggy.net>
wrote:
Previously Andreas Jung wrote:
Having SecureMailhost as a replacement for MailHost would have been a nice addition to the Zope core..but you choose to go with your own implementation :->
If possible I want to try and move Plone 3.5 to zope.sendmail, which seems to be much cleaner than all the MailHost/SecureMailHost/DropMailHost/etc. products combined.
There is now TransactionalMailHost (on top of zope.sendmail)
<http://svn.zope.org/Products.TransactionalMailHost/>
providing transaction-aware Mailhost support + support for TLS/SSL (like in SecureMailHost - however it requires yet an unofficial zope.sendmail branch). I think this should make most Mailhost excrescences obsolete. If there is some functionalty missing I would be happy to add it (if it makes sense).
In addition the same functionality + asynchronous mail delivery (similar to Maildrophost but without having an external process) will be available as part of the standard Zope MailHost implementation in Zope 2.11. Andreas
Laurence, thanks for the tip, exactly what I needed to know. :-) -Morten On Tue, 19 Feb 2008 10:30:29 +0000, Laurence Rowe <l@lrowe.co.uk> wrote:
See the discussion on plone-dev a while ago, "link integrity checking will make Plone 3.0 broken and dangerous". Worth trying with 2.9.8 at least.
Laurence
--On 18. August 2007 21:03:43 +0200 Andreas Jung <lists@zopyx.com> wrote:
--On 23. Juli 2007 08:53:32 +0200 Wichert Akkerman
<wichert@wiggy.net>
wrote:
Previously Andreas Jung wrote:
Having SecureMailhost as a replacement for MailHost would have been a nice addition to the Zope core..but you choose to go with your own implementation :->
If possible I want to try and move Plone 3.5 to zope.sendmail, which seems to be much cleaner than all the MailHost/SecureMailHost/DropMailHost/etc. products combined.
There is now TransactionalMailHost (on top of zope.sendmail)
<http://svn.zope.org/Products.TransactionalMailHost/>
providing transaction-aware Mailhost support + support for TLS/SSL (like in SecureMailHost - however it requires yet an unofficial zope.sendmail branch). I think this should make most Mailhost excrescences obsolete. If there is some functionalty missing I would be happy to add it (if it makes sense).
In addition the same functionality + asynchronous mail delivery (similar to Maildrophost but without having an external process) will be available as part of the standard Zope MailHost implementation in Zope 2.11.
Andreas
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
participants (4)
-
Laurence Rowe -
Lennart Regebro -
Marius Gedminas -
morten@nidelven-it.no