# 4000 - Send document

4000 - Send document

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

### Before

*Input Parameters*

* 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;

### Replace

*Input Parameters*

* 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;

### After

*Input Parameters*

* 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;
