> On Oct 8, 2014, at 6:54 AM, Guillem Barba Domingo <[email protected]> > wrote: > > 2014-10-08 8:50 GMT+02:00 Nicolas Évrard <[email protected]>: >> * Dale Scott [2014-10-08 06:25:05 +0200] >> > Hi Pierre-Louis, thank you for clarifications. >> > >> > > On Oct 7, 2014, at 9:11 PM, Pierre-Louis Bonicoli >> > > <[email protected]> wrote: >> > > >> > >> On 08/10/2014 01:53, Dale Scott wrote: >> > > >> > >> Assuming trytond does send mail server-side, I am trying to >> > >> understand why both are required - in my situation I require all mail >> > >> be sent server-side to avoid needing user workstation configuration. >> > > >> > > The SMTP configurations of the client and the server are unrelated: >> > > mails sent by the Tryton client use the configuration of the 'mail >> > > reader'. >> > >> > 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). >> >> Then you can call the report and send the received data through the >> SMTP client. > > > or you can use the "electronic_mail" modules that you can find in BitBucket: > https://bitbucket.org/repo/all?name=trytond-electronic_mail > > If you want to install them with pip, you can put something like this in a > requirements.txt > -e > hg+https://[email protected]/zikzakmedia/trytond-electronic_mail#egg=trytonzz_electronic_mail >
Thanks everyone for your comments. I'm still figuring out how to configure my local Postfix/Dovecot for virtual users before I can experiment more with mail. The prototype system I'm building isn't allowed by corporate IT policy to connect to the enterprise mail system, but I still want to demonstrate app mail (from Tryton, MantisBT for ISO9001 non-conformance tracking, and WordPress with the "Document Revisions" plugin for document revision and control), and the enterprise firewall doesn't allow connecting to external mail servers, even browser access to outside webmail is blocked. Regards, Dale
