# 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F8qFhEra3W8PEx1zuvqkh%2Fimage.png?alt=media&#x26;token=aa4d7c54-a40a-4bb2-bcbd-2b952fbd4b61" alt=""><figcaption></figcaption></figure>
