# EXT\_Email\_SendReport

Function to ask MSS to send any report by email.

*Input parameters:*&#x20;

* inCustomerCode – Code of the customer, if needed to the specified report;&#x20;
* inDescription – Text to fill the subject of the email (can be empty, MSS will use a default text);&#x20;
* inReportFile – Name of the layout file to be used;&#x20;
* inSendToEmail – Only used to override the email from the customer (CLIEML);&#x20;
* inMessage – Text to fill the email message;
* inParameter1 – User parameter 1 (Report variable 5)*;*
* inParameter2 – User parameter 2 (Report variable 6);
* inParameter3 – User parameter 3 (Report variable 7);
* inParameter4 – User parameter 4 (Report variable 8);
* inParameter5 – User parameter 5 (Report variable 9);

*Output parameters:*&#x20;

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-kalipso-to-mss/email/ext_email_sendreport.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
