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

# Who gets which email

> Know which address each customer email goes to, and how to point invoices, reminders, statements, and receipts at the right person.

Streamlined emails your customers about their invoices: when you issue one, when it's coming due or past due, with their statement, and when they pay. Each email goes to one To address, plus any CC addresses. This page explains how Streamlined picks them, so you can store each customer's contacts where they'll be used.

## The short version

For most customers, every email goes to the email on their billing address, and copies go to that address's `cc_email` list.

| Email | Goes to |
| - | - |
| Invoices | The billing address's `email` |
| Reminders | The billing address's `email` |
| Statements | The customer's preferred billing address's `email` |
| Payment receipts | The email the customer entered at checkout, or the billing address's `email` |

CCs always come from the billing address's `cc_email`, a comma-separated list. The To address is never repeated in CC.

## Which billing address

For invoices and reminders, the billing address is the group's billing address when the customer is in a [customer group](https://docs.streamlinedpayments.com/guides/customer-groups.md) that has one. Otherwise it's the customer's preferred billing address, and if there's none, the address on the invoice.

Statements always use the customer's own preferred billing address, even in a group.

Emails use that address as it is when the email is sent. So if you change a customer's billing email, reminders for invoices you've already issued go to the new address, even though the address printed on those invoices stays the same.

To set a customer's billing contact through the API:

1. Add or update the address with `email` and `cc_email`, using [Add customer address](https://docs.streamlinedpayments.com/api-reference/customer-addresses/add-customer-address.md) or [Update customer address](https://docs.streamlinedpayments.com/api-reference/customer-addresses/update-customer-address.md):

   ```bash theme={null}
   curl https://api.staging.streamlinedpayments.com/api/v1/customers/c1f0a92b-4d63-4e88-b0a7-2f9e4c6d1b35/addresses \
     -X POST \
     -H "X-App-Id: $STREAMLINED_APP_ID" \
     -H "X-Api-Key: $STREAMLINED_API_KEY" \
     -H "Content-Type: application/json" \
     -d '{
       "address": {
         "company_name": "Northwind Traders",
         "address1": "500 Market St",
         "city": "San Francisco",
         "state": "CA",
         "postal_code": "94105",
         "country": "US",
         "email": "ap@northwind.example",
         "cc_email": "controller@northwind.example,buyer@northwind.example"
       }
     }'
   ```

2. Make it the customer's preferred billing address with [Set address as default billing](https://docs.streamlinedpayments.com/api-reference/customer-addresses/set-address-as-default-billing.md), using the `id` from the response.

## Email delivery on Enterprise

On Enterprise, you can send each kind of email to a different person, so invoices go to the buyer and reminders go to accounts payable. Set these in the Streamlined app, on a customer or on a customer group:

| Field in the app | Used for |
| - | - |
| Invoice submission email | Invoices |
| Accounts payable email | Reminders and payment receipts |
| Statements email | Statements |

A group's delivery addresses apply to every member and take priority over a member's own. If the field for an email is blank, Streamlined uses the customer's other delivery addresses and then the billing address's email. CCs still come from the billing address.

## Issue an invoice without emailing it

To issue an invoice and send it yourself, pass `"send_email": false` to [Create invoice from order](https://docs.streamlinedpayments.com/api-reference/invoices/create-invoice-from-order.md). The invoice is issued with its `payment_url`, and the invoice email isn't sent.


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