> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-kalipso-to-mss/email/ext_email_senddocument.md).

# EXT\_Email\_SendDocument

Function to ask MSS to send a document by email.

*Input parameters:*&#x20;

* inCustomerCode – Code of the customer, if needed to the specified report;&#x20;
* inDocumentExercise – Exercise of the document;&#x20;
* inDocumentType – Type of the document;&#x20;
* inDocumentSeries – Series of the document;&#x20;
* inDocumentNumber – Number of the document;&#x20;
* inSendToEmail – Only used to override the email from the customer (CLIEML);&#x20;
* inDescription – Text to fill the subject of the email (can be empty, MSS will use a default text);&#x20;
* inMessage – Text to fill the email message;
* inAttachmentsList - Files list to attach (files full name separated with character CR).

*Output parameters:*&#x20;

* outResultCode – Return code: 0 – Done / < 0 Error or user cancelled;
