send report as attachment

SOLVED

Hello,

I would like to know if it is possible to send a report (PDF) by email from sage X3 while allowing the user to personalize the email (subject, message, recipients...).

I made a script that automatically generates the invoice in pdf format to save it in a folder when the user validates an invoice. The goal here would be to send this pdf by email as well.

I was thinking of a feature similar to "mailto:" that would allow me to call an outlook window with the report attached.

Thanks in advance for your help