> 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.0/mss-extension-functions-mss-kalipso/email/4000-email-send-document.md).

# 4000 - (Email) Send document

4000 - (Email) Send document

| Event   | Extension action set  | Description                                            |
| ------- | --------------------- | ------------------------------------------------------ |
| Before  | EXT\_4000\_1\_Before  | Will be executed before MSS sends a document by email; |
| Replace | EXT\_4000\_2\_Replace | Will replace MSS send document by email process;       |
| After   | EXT\_4000\_3\_After   | Will be executed after sending a document by email;    |

*Input Parameters (event before):*

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inCustomerCode – Code of the selected customer;

*Input Parameters* *(event replace):*

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inCustomerCode – Code of the selected customer;

*Input Parameters (event after):*

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inCustomerCode – Code of the selected customer;
