On Wed, Oct 8, 2014 at 4:16 PM, Pierre-Louis Bonicoli < [email protected]> wrote:
> On 08/10/2014 09:27, Cédric Krier wrote: > > On 08 Oct 08:50, Nicolas Évrard wrote: > >> Dale Scott [2014-10-08 06:25:05 +0200] > >>> > >>> Is the *only* purpose of client-side mail sending (from the Tryton > >>> client) to send report attachments? > >> > >> Currently yes it is. > >> > >>> Is there a way to send reports from server-side? > >> > >> In that case you should create a module and use the smtp configuration > >> of trytond (the tools module provides a function to get a smtplib SMTP > >> client). > > > > But be careful that currently sending email is not transactional. We > > will need to implement two phase commit: > > https://code.google.com/p/tryton/wiki/TwoPhaseCommit > > Could not the email-queue module > (https://github.com/openlabs/email-queue) be used ? > > The email queue is a good way to work around the two phase commit to have transaction safety when sending server side emails. Cheers -- -- Sharoon Thomas Openlabs Technologies & Consulting (P) Limited w: http://www.openlabs.co.in m: +1 813.793.6736 (OPEN) Extn. 200 t: @sharoonthomas - We Win When our Customers Win
