# 4000 - Send document

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/email/4000-email-send-document
>
> Eventos EXT_4000 Before/Replace/After no envio de um documento por email, com exercício, tipo, série, número do documento e código do cliente.

4000 - Send document

| Event                                          | Extension action set  | Description                                            |
| ---------------------------------------------- | --------------------- | ------------------------------------------------------ |
| [Before ](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/email/4000-email-send-document.md#before)  | EXT\_4000\_1\_Before  | Will be executed before MSS sends a document by email; |
| [Replace](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/email/4000-email-send-document.md#replace) | EXT\_4000\_2\_Replace | Will replace MSS send document by email process;       |
| [After](https://doc.sysdevmobile.com/mss/extensibility/functions-mss-to-kalipso/email/4000-email-send-document.md#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;
