---
title: "getIncomingEmail"
canonical: "https://support.appfire.com/space/PSJC/1002045477/getIncomingEmail"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Retrieves a structure containing information about the incoming email such as sender, recipients, subject, or body.

Retrieves a structure containing information about the incoming email such as sender, recipients, subject, or body. As opposed to the server counterpart it does not receive any parameters, because you may process the original and the html body

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getIncomingEmail() | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Return Type

**[IncomingEmail](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

## Example

```javascript
IncomingEmail email = getIncomingEmail();
if(email.from != "jira-support@kepler-rominfo.com") {
	// create issue
}
```

## See also

> Macro (contentbylabel)