> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexprice.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Emailing Invoices

> Email invoices to your customers from Flexprice, by hand or automatically when each invoice is finalized, and see whether each email was delivered

Invoice emails send a finalized invoice straight to your customer, with a button to view and pay it online and the invoice PDF attached. Send one by hand from the invoice page, or let Flexprice email every invoice as soon as it is finalized. The invoice page shows every email sent and whether it reached the customer.

![Invoice email from Acme Cloud with the amount due, the View invoice button, the charges and the attached PDF](https://mintcdn.com/flexprice/kirmm0zTvx4ShVN8/images/docs/invoices/email/invoice-email-sample.png?fit=max\&auto=format\&n=kirmm0zTvx4ShVN8\&q=85\&s=59bdc4a787134b5444a8bfcd4a490bed)

## What your customer receives

* **From your business:** the email comes from your business name, with the subject "Invoice *invoice number* from *your business name*".
* **View invoice:** opens the [hosted invoice](https://docs.flexprice.io/docs/invoices/hosted-invoices.md), where the customer can see the full invoice, download the PDF and pay online.
* **A summary of the invoice:** the amount due, who it is billed to, the invoice date and the charges with the totals. Long invoices list the first 10 charges, and the rest are on the hosted invoice.
* **The PDF:** attached to the email when **Attach invoice PDF** is on.
* **Replies come to you:** when the customer replies, the email goes to your organization's help email, or to its billing email if there is no help email.
* **Billing entities, if turned on:** when [billing entities](https://docs.flexprice.io/docs/invoices/billing-entities.md) are turned on for the environment, each invoice is emailed under the name of the entity that issued it, and replies go to that entity's help or billing email, or to your organization's if the entity has neither. With billing entities off, every email uses your organization's name and emails.

## Before you start

Add a help or billing email under **Settings → Organization**, so customers have somewhere to reply. Invoices are not emailed without one. If billing entities are turned on, a help or billing email on the invoice's entity also works.

## Turning on emails

Go to **Settings → Alerts & Emails → Emails**, turn on the options you want, and select **Save changes**. The settings apply to the environment selected in the environment switcher, so turn them on separately for Sandbox and Production.

![Emails settings with the Send emails, Attach invoice PDF and Email invoices automatically switches](https://mintcdn.com/flexprice/ekFFNwbPJymKcGue/images/docs/invoices/email/settings-emails.png?fit=max\&auto=format\&n=ekFFNwbPJymKcGue\&q=85\&s=d62a8ab2787ac3a1fc5cf0b9b4a976b0)

| Option | Default | What it does |
| - | - | - |
| **Send emails** | Off | Lets you email invoices to customers. Turning it off also turns off automatic emails. |
| **Attach invoice PDF** | On | Attaches the invoice PDF to each email, as well as the View invoice button. |
| **Email invoices automatically** | Off | Emails each invoice to the customer as soon as it is finalized. Needs **Send emails** on. |

## Sending an invoice

Open a finalized invoice under **Billing → Invoices**. Select **Send** in the **Emails** card, or **Email invoice** in the **⋯** menu.

![Email invoice dialog with the customer's email in To and an address in CC](https://mintcdn.com/flexprice/ekFFNwbPJymKcGue/images/docs/invoices/email/email-invoice-dialog.png?fit=max\&auto=format\&n=ekFFNwbPJymKcGue\&q=85\&s=ce1fbbc99b83daf24fbb6e7110609439)

**To** is filled in with the customer's email. Change it or add more addresses, add anyone to copy in **CC** (press Enter or a comma after each address), then select **Send email**. The email appears in the **Emails** card straight away.

Draft invoices can't be emailed until they are finalized, and voided invoices can't be emailed at all.

## Sending invoices automatically

With **Email invoices automatically** on, Flexprice emails each invoice to the customer's email address the moment it is finalized, so you don't have to send it yourself. These emails are marked **Auto** in the **Emails** card.

An invoice is not emailed automatically when the customer has no email address or the invoice total is zero. The **Emails** card shows these as **Skipped**, with the reason.

## Checking delivery

The **Emails** card on the invoice page lists every email sent for the invoice, newest first. Each one shows:

* its status, such as **Delivered** or **Bounced**
* **Manual** if someone sent it, or **Auto** if it was sent on finalize
* who it was sent to, and how many people were copied
* when it was sent

When an email didn't reach the customer, the card also shows why. The status updates on its own, so there is no need to refresh the page.

![Invoice page with the Emails card listing a manual and an automatic email, both delivered](https://mintcdn.com/flexprice/ekFFNwbPJymKcGue/images/docs/invoices/email/invoice-emails-card.png?fit=max\&auto=format\&n=ekFFNwbPJymKcGue\&q=85\&s=ebd60bc318abefdbc012ca54d2507360)

| Status | Meaning |
| - | - |
| **Queued** | About to be sent |
| **Sent** | Sent, waiting for the customer's mail server to accept it |
| **Delivery delayed** | Delivery is taking longer than usual |
| **Delivered** | Reached the customer's inbox provider |
| **Bounced** | The customer's mail server rejected it, often because the address is wrong |
| **Failed** | Could not be sent |
| **Suppressed** | Not sent, because this address bounced or complained before |
| **Complained** | The customer marked the email as spam |
| **Skipped** | Not sent on purpose, with the reason shown |

If you turn off **Send emails** while an email is still **Queued**, it is not sent and shows as **Skipped**.

## Using the API

You can do the same from the API:

* Turn emails on with the `email_notification_config` setting, which has the same three options: `enabled`, `attach_invoice_pdf` and `auto_send`.
* Send an invoice with [Email invoice to customer](https://docs.flexprice.io/api-reference/invoices/email-invoice-to-customer.md), optionally with your own `to` and `cc` addresses.
* See an invoice's emails with [List invoice emails](https://docs.flexprice.io/api-reference/invoices/list-invoice-emails.md), or search across invoices with [Search emails](https://docs.flexprice.io/api-reference/invoices/search-emails.md).

> [card] [Hosted Invoices](https://docs.flexprice.io/docs/invoices/hosted-invoices.md)
>
> The page your customer opens from the email to view and pay the invoice.

> [card] [Managing Invoices](https://docs.flexprice.io/docs/invoices/managing.md)
>
> Find, finalize, void and download invoices in the dashboard.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.