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

-- 
Guillem Barba
http://www.guillem.alcarrer.net

Reply via email to