# Get email content

This is a pre-built action in Avo Assure and comes under **@Email Element.** The functionality of this action in Avo Assure is to fetch the entire content of an email and save the result in dynamic variable.

### Syntax

**Input Value:** `<From (Optional>;<To (Optional)>;<Subject(Optional)>;<Index(Optional)>`

| Argument                           | Description                                                                                           |
| ---------------------------------- | ----------------------------------------------------------------------------------------------------- |
| <p>\<From></p><p>(Optional)</p>    | <p>Specify the sender name to search for it. </p><p>If specified, filters emails from this sender</p> |
| <p>\<To></p><p>(Optional)</p>      | Specify the email address of the recipient. If specified, filters emails sent to this address.        |
| <p>\<Subject></p><p>(Optional)</p> | Specify the filters emails by matching the subject line. Useful for narrowing down results.           |
| <p>\<Index></p><p>(Optional)</p>   | Specify the index number of the email (starting from 1) in the filtered results to retrieve.          |

**Output Value:**

<table><thead><tr><th valign="top">Argument </th><th valign="top">Description </th></tr></thead><tbody><tr><td valign="top"><p>&#x3C;Dynamic Variable></p><p>(Required)</p></td><td valign="top">This dynamic variable holds retrieved content of the mail</td></tr><tr><td valign="top"><p>&#x3C;Dynamic Variable></p><p>(Optional)</p></td><td valign="top">This dynamic variable holds the status of the action as <strong>True</strong> or <strong>False</strong>.</td></tr></tbody></table>

**Example**

**Performs retrieval of email content based on given filters**

The **Get email content** action takes the value from the Input Value column (e.g., **Jhon White <Tomasyn@xyz.com>;Meeting Update;1**) and fetches the content of the email matching the specified **From**, **To**, **Subject**, and **Index** parameters. The email content is stored in the **{Mail}** variable

<figure><img src="/files/gZ0qKPPNye8yp0xktxv0" alt=""><figcaption></figcaption></figure>


---

# 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://docs.avoautomation.com/avo-assure/actions/desktop/email/get-email-content.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.
