How to save email attachments

This article describes how to use Parseur to save emails attachments and store them in your favorite cloud service or application.

Why save attachments?

Your email attachments contain valuable information you would like to save and exploit.

For example:

  • Save invoices you receive by email to a shared folder to share with your accountant
  • Backup attachments for auditing purposes
  • Send shipping orders to a cloud storage so that they can be processed later

How to save email attachments?

Note: The rest of this article assumes you already have a Parseur account.

Click here to create your free account if you don't.

Attachments are not enabled by default. Enable the Attachments field in your Parseur mailbox options, under the Fields > Extra Fields section:

Tick the box to enable the Attachments field

Tick the box to enable the Attachments field

Note: To add the Attachment field to already processed documents, reprocess those documents after enabling the field.

From now on, all documents that you process will contain a new Attachments entry. Attachments entry is a list of objects, each attachment object has 4 properties:

  • name: The name of the file
  • url: A public link to download the file content (A warning: anyone that has the link can access the file)
  • content_type: The type of content in MIME format. Parseur supports all content types
  • size: The size of the attachment, in bytes. Parseur can store files up to 35MB in size

From a technical standpoint, the list of attachments is represented as a JSON array. If you want to manage attachments with a custom webhook, result looks like this:

{
  Attachments: [
    {
      name: "report.pdf",
      url: "https://api.parseur.com/attachment/XmzB4w77sbK2gk/report.pdf",
      content_type: "application/pdf",
      size: 250000
    },
    {
      name: "presentation.ppt",
      url: "https://api.parseur.com/attachment/VTGPFblFAY9O48Ue/presentation.ppt",
      content_type: "application/ppt",
      size: 123000
    }
  ]
}

What can I do with my saved attachments?

Here are some use cases and integrations that take advantage of attachments:

  • Store attachments to your Google Drive (Full article coming soon)
  • Store attachments to your Dropbox (Full article coming soon)
  • Send your attachments any application in Zapier that supports files (Full article coming soon)
  • Send your attachments to a connector in Microsoft Flow that supports files (Full article coming soon)

Let us know if you have another use case for attachments. Contact us in the chat below

How to disable attachments field?

Simply go to your mailbox settings and uncheck the attachments extra field option.

Untick the box to disable the Attachments field

Untick the box to disable the Attachments field

Last updated: