Set up emails and easy email delivery

On a second though, I think we could get rid of the “mailto” and have a dedicated dialog box for sending email via the Tryton server. As long as we use the On-Behalf-Of (and Repl-To) as explained in https://stackoverflow.com/questions/2782380/best-practices-sending-email-on-behalf-of-users.

So for me, the dialog would be:

  • To: filled with the report to value by default and with auto-completion using the contact mechanism. It is a comma separated list of addresses (maybe formatted with the party name).
  • Cc and Bcc: optional but behave like To
  • Subject: filled with report default
  • Message: the body from report by default with the user signature append after '-- '. The widget will use the richtext as it is HTML compatible.
  • Template: a list is existing template if selected fill the message content using the value of the record. Available only if a single record is selected.
  • Options as checkbox: “Send me a copy” (add the user as Bcc), “Request read receipt”, etc.
  • List of attachments: with the report by default. It can be edited by adding, removing and change the name.

When send is clicked, the client request the server to send it on behave of the user. The server send it directly in order to generate an error message.

2 Likes