# EXT\_Email\_SendDocument

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-kalipso-to-mss/email/ext_email_senddocument
>
> EXT_Email_SendDocument envia um documento por email, com assunto, mensagem, destinatário alternativo e ficheiros anexos opcionais.

Function to ask MSS to send a document by email.

_Input parameters:_

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

_Output parameters:_

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