G
G
Grione2020-04-26 13:25:11
JavaScript
Grione, 2020-04-26 13:25:11

How to send pdfmake generated file to email?

There is a site on Bitrix. The site has a calculator that generates an html table. It is required to send this table to the specified mail as an attached pdf file.

I generate a pdf file through JS using pdfmake. ( https://pdfmake.github.io/docs/options/).
But I can't figure out how to send a file by mail. Help me to understand.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-04-27
@AlexeyCaTHaR

Create a mail template with the required markup.
After generating the file on the server (not on the client), call sending a letter using the template via:
https://dev.1c-bitrix.ru/api_help/main/reference/c...
and fill in the files array in the method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question