Introduction

This guide will show you how to set up the Email app and its associated workflow actions for emailing invoices or sending notifications. Included in this guide is a step-by-step configuration process, authentication settings, message customization, and usage of email providers or SMTP servers.

Prerequisites

You can send emails from Company name <email@invopop.com> by simply connecting the Email app. If you wish to send emails from your own domain such as Company Name <name@yourdomain.com>, you will need one of the following:
In the case of SMTP delivery we strongly recommended to use an app password or token if your service provider allows it. This is the best security practice because it allows you to revoke authorization at any time, even if you lose access to Invopop.

Setup

1

Connect the Email app.

Head over to Configuration โ†’ Apps, and find Email from the list of apps to discover. Tap the Connect button to enable.
Email app connected
2

Add Senders

After connecting the Email app, click on Configure. You will find a pre-defined email address Invopop Email <email@invopop.com>. Editing this email address will allow you to customize the Sender name, allowing you to send emails with your company name Company Name <email@invopop.com>.You can add as many senders as you need by tapping on the Add button. Email providers other than Invopop will allow you to use your own domain name (after itโ€™s configured with the email provider).
3

Set up your workflow

Whether you start from an existing or new workflow, make sure that you add the Send Email step after you have issued an invoice via the corresponding tax authority and generated a PDF (if required). This will ensure the necessary files are attached, and that the invoice complies with local regulatory requirements.Workflow with email actionsIf you simply want to send a Notification via Email, this suggestion does not apply, as no files are attached.

Workflow actions

The Email app adds two items to your workflow action list:
  1. Send Email: this action will attach the files associated with a silo entry, and is mainly used for sending invoices to customers or other recipients.
  2. Notify via Email: this action will not attach files, and is meant for sending messages such as notifications or failures.

Workflow action configuration

VERI*FACTU app connected
1. Sender Here you will find Senders which were added in the Email app configuration. A sender can be thought of as a person or company name and email address. 2. To Check Automatically add invoice customers if you wish to send the invoice as an attachment to the customer. This is usually the case for B2C workflows. If you wish to send the email with attachments to a specific address, tap on the Add button and write an address in the email field. 3. BCC BCC stands for Blind Carbon Copy, and is used when you do not want the recipients in this field to appear in the message header. Other recipients wonโ€™t know that a copy was sent to these addresses. This is useful to send a copy of the invoice to yourself, for example. 4. Reply To The โ€œReply Toโ€ field requires a valid email address where recipientsโ€™ responses will be directed. This field determines where replies go, regardless of the sending address. 5. Subject The email subject field is a brief heading that summarizes your messageโ€™s purpose. This field allows you to use template variables in order to customize the subject for the recipient.
For maximum effectiveness, keep it clear and specific (e.g., โ€œInvoice #12345 from Acme Inc.โ€). Many email clients display only the first 60-70 characters of a subject, so prioritize key information at the beginning.
6. Body The email body textarea is where you compose your messageโ€™s main content. This field allows template variables and will preserve whitespace. 7. Combine attachments into a single zip file It is possible that your workflow generates several files per invoice (sometimes an XML and a PDF file are required by legislation). This option allows you to combine and compress all files into a single .zip file.

Custom Template Variables with Job Args

In addition to the predefined variables available in the Insert variable menu, you can inject custom variables into your email templates using job args. This is particularly useful for dynamic content like payment links, conditional text, and other external data.

How It Works

When using the API to run a workflow you pass an args data object with custom variables you want to inject into your email. You will then introduce the variable into the emailโ€™s subject or body with the following syntax: {{args.variable_name}}. If you need to provide a fallback in case the variable is not present, we recommend using the following syntax: {{ or args.value "Default value" }}. Letโ€™s say you want to send an email with a custom payment link. Hereโ€™s how to set it up:
1

Configure your email template

In the email body field you can use both UI variables (in this case Customer Name and Full Code) and custom variables {{args.payment_link}}.
VERI*FACTU app connected

Body field example with custom arguments

2

Execute the job with custom args

Arguments (args) are key-value pairs tailored to specific applications, in this case we are creating a payment_link which will be available to the Email App. Create the job via API with the proper payload:
  {
    "content_type": "application/json",
    "silo_entry_id": "...",
    "workflow_id": "...",
    "args": {
      "payment_link": "https://your-payment-link.com"
    }
  }
3

Verify result

The email recipient should receive an email with the following content:
Hello John Doe,

Your invoice INV-2025-001 is attached to this email.

You can pay it here: https://your-payment-link.com

Best regards,
Invopop
Key Points
  • Use {{args.variable_name}} syntax in email templates for custom variables
  • Include the same variable names in the args object when executing the job via API
  • Custom variables work in both email body and subject fields
  • Variable names must match exactly between template and API payload
FAQ