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


## Description

> Macro (excerpt)
> 
> Saves all attachments from an incoming email

Saves all attachments from an incoming email, in a given directory, on the local disk.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | saveAllAttachmentsFromEmail(dirPath) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| dirPath | string | Yes | Where to save those attachments |

## Return Type

**boolean**

True if the attachments are saved

## See also

> Macro (contentbylabel)