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


## Description

> Macro (excerpt)
> 
> Saves an attachment from an incoming email

Saves an attachment from an incoming email, in a file, on the local disk.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | saveAttachmentFromEmail(attachmentName, filePath) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| attachmentName | string | Yes | An attachment from the incoming mail |
| filePath | string | Yes | Where to save that attachment |

## Return Type

**boolean**

True if the attachment is saved

## See also

> Macro (contentbylabel)