Actions4
Overview
This node integrates with the Mail.tm temporary email service API, allowing users to manage temporary email accounts, messages, attachments, and perform complex workflows. It is useful for automating tasks involving disposable email addresses, such as testing email flows, receiving verification emails, or managing inboxes without exposing personal email addresses.
For the Attachment operation specifically, the node enables downloading a single attachment from a specified message. This is beneficial when you want to automatically retrieve files sent to a temporary email address for further processing or storage.
Practical Example
- Automatically download an invoice PDF attached to a confirmation email received on a temporary email address.
- Retrieve image attachments from promotional emails sent to a disposable inbox for analysis.
Properties
| Name | Meaning |
|---|---|
| Auth Token | Authentication token from a previous step; overrides credential usage if provided. |
| Action | The action to perform on attachments. For this resource, only "Download" is supported. |
| Message ID | The ID of the message containing the attachment to download. |
| Attachment ID | The ID of the specific attachment to download from the message. |
Output
The output contains the downloaded attachment in binary form along with the original input JSON data. Specifically:
json: Contains the original input item’s JSON data.binary.data: Contains the binary data of the downloaded attachment, prepared with its filename.
This allows subsequent nodes in the workflow to access the attachment file directly for saving, processing, or forwarding.
Dependencies
- Requires access to the Mail.tm API endpoint (
https://api.mail.tm). - Needs either:
- An authentication token provided via the "Auth Token" property, or
- Credentials configured in n8n (email address and password) to obtain an auth token automatically.
- No additional external dependencies beyond standard HTTP requests.
Troubleshooting
- Authentication required error: Occurs if neither an auth token nor valid credentials are provided. Ensure you supply one of these.
- Attachment not found error: Happens if the specified attachment ID does not exist in the given message. Verify the message and attachment IDs are correct.
- Timeouts or network errors: Check network connectivity and API availability.
- If downloading large attachments, consider potential memory limits or timeouts in your environment.