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


## Description

> Macro (excerpt)
> 
> Saves an attachment from an incoming email on some issue

Saves an attachment from an incoming email, attaching it to an issue

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | attachFileFromEmail(attachmentName, issueKey) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| attachmentName | string | Yes | An attachment from the incoming mail |
| issueKey | string | Yes | Where to save that attachment, on what issue |

## Return Type

**boolean**

True if the attachment is saved on that issue

## See also

> Macro (contentbylabel)