How to include attachment (or link) of the document when sending e-mail?

2

Good afternoon.

Thanks to previous responses ( Endpoint to send document by email and #

(Note: If you set up the sender, you may have problems sending e-mails to spam in the target box, depending on the sender domain's DNS configuration.)

However, I have 2 problems:

  • How can I actually add the link (the one that is temporary and only takes 30 days) so that the user can see and download the document? The factory template mentions the link, but does not include it. I have already tried to insert the %%DocumentLink%% ken token, but it is not recognized. And since the email sending endpoint is not documented, I can not figure out what options are available.

  • How can I configure the email template (obtained through the /billing/invoices/{{id_invoice}}/emailinfo endpoint) so that the email to be sent includes the attachment document? Jasmin's UI offers this option, and it works. I have already tried adding a "sendPdfAsAttachment" attribute (coming from the name of the corresponding control in the UI) to the template, but it did not help.

If I can not send the link or the document in attachment, I will have to reinvent the wheel :-(: download the document PDF (through the /billing/invoices/{{id_invoice}}/print endpoint), and then send myself the email with the PDF in attachment.

    
asked by anonymous 04.10.2018 / 13:35

0 answers