> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebrainbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# New Email

Trigger when a new email is received in Outlook.

## Input

| Property    | Type        | Required | Description                                      |
| ----------- | ----------- | -------- | ------------------------------------------------ |
| subject     | SHORT\_TEXT | No       | Search for a specific value in the Subject field |
| to          | SHORT\_TEXT | No       | Search for a specific value in the To field      |
| fromAddress | SHORT\_TEXT | No       | Search for a specific value in the From field    |

## Sample Output

```json theme={null}
{
  "html": "My email body",
  "text": "My email body",
  "textAsHtml": "<p>My email body</p>",
  "subject": "Email Subject",
  "date": "2023-06-18T11:30:09.000Z",
  "to": {
    "value": [
      {
        "address": "email@address.com",
        "name": "Name"
      }
    ]
  },
  "from": {
    "value": [
      {
        "address": "email@address.com",
        "name": "Name"
      }
    ]
  },
  "cc": {
    "value": [
      {
        "address": "email@address.com",
        "name": "Name"
      }
    ]
  },
  "messageId": "<CxE49ifJT5YZN9OE2O6j6Ef+BYgkKWq7X-deg483GkM1ui1xj3g@mail.gmail.com>"
}
```
