# Automate emailing invoices This topic describes common Rebilly invoice email automations. For a complete list of automation options, and how to configure them, see [Events](/docs/automations/event-types). ## Send an invoice when it is issued This process describes how to send the customer an invoice by email when it is issued. 1. In the left navigation bar, press . 2. In the **Data and alerts** section, press **Email notifications**. 3. Press **Billing events**, then press the **Invoice issued** event. 4. Press **Create email notification**. 5. In the **Notification name** field, enter a unique name for the email notification. 6. In the **Labels** field, enter one or more labels to help categorize the email notification. 7. Optionally, to specify additional conditions on when the email is sent: 1. In the **Conditions** section, clear the **No conditions** checkbox. 2. In the **Select filter** dropdown, select a filter. 3. In the next field, select an operation. 4. In the next field, enter or select values. 5. Optionally, to add another filter, press **Add filter**. 8. In the **Emails** section, press **Add email**. 9. In the **Title** field, enter a name. This name is referenced in reports. 10. In the **From** field, select your email address. If your address is not listed, press **Add email address**. 11. In the **To** field, press in the field, and select the `invoice.customer.primaryAddress.emails.0.value` placeholder text. 12. In the **Subject** field, enter `New invoice issued`. 13. In the **Email content** field, compose your email. Press **Add placeholders**, to add dynamic content such as a payment link and customer information. 14. Select the **Attach invoice** checkbox. 15. Press **Save notification**. ## Send an upcoming renewal notification This process describes how to send a customer an invoice by email in advance of the renewal date. To use this automation, you must have a pricing plan with recurring settings, and invoice time shift must be active. For more information, see [Create a product and pricing plan](/docs/settings/products-and-pricing). 1. In the left navigation bar, press . 2. In the **Data and alerts** section, press **Email notifications**. 3. Press **Billing events**, then press the **Renewal invoice issued** event. 4. Press **Create email notification**. 5. In the **Notification name** field, enter a unique name for the email notification. 6. In the **Labels** field, enter one or more labels to help categorize the email notification. 7. Optionally, to specify additional conditions on when the email is sent: 1. In the **Conditions** section, clear the **No conditions** checkbox. 2. In the **Select filter** dropdown, select a filter. 3. In the next field, select an operation. 4. In the next field, enter or select values. 5. Optionally, to add another filter, press **Add filter**. 8. In the **Emails** section, press **Add email**. 9. In the **Title** field, enter a name. This name is referenced in reports. 10. In the **From** field, select your email address. If your address is not listed, press **Add email address**. 11. In the **To** field, press in the field, and select the `invoice.customer.primaryAddress.emails.0.value` placeholder text. 12. In the **Subject** field, enter `New invoice issued`. 13. In the **Email content** field, compose your email. Press **Add placeholders**, to add dynamic content such as a payment link and customer information. 14. Select the **Attach invoice** checkbox. 15. Press **Save notification**. ## Send a paid invoice notification This process describes how to send the customer an email when an invoice is paid. 1. In the left navigation bar, press . 2. In the **Data and alerts** section, press **Email notifications**. 3. Press **Billing events**, then press the **Invoice paid** event. 4. Press **Create email notification**. 5. In the **Notification name** field, enter a unique name for the email notification. 6. In the **Labels** field, enter one or more labels to help categorize the email notification. 7. Optionally, to specify additional conditions on when the email is sent: 1. In the **Conditions** section, clear the **No conditions** checkbox. 2. In the **Select filter** dropdown, select a filter. 3. In the next field, select an operation. 4. In the next field, enter or select values. 5. Optionally, to add another filter, press **Add filter**. 8. In the **Emails** section, press **Add email**. 9. In the **Title** field, enter a name. This name is referenced in reports. 10. In the **From** field, select your email address. If your address is not listed, press **Add email address**. 11. In the **To** field, press in the field, and select the `invoice.customer.primaryAddress.emails.0.value` placeholder text. 12. In the **Subject** field, enter `New invoice issued`. 13. In the **Email content** field, compose your email. Press **Add placeholders**, to add dynamic content such as customer information. 14. Select the **Attach invoice** checkbox. 15. Press **Save notification**. ## Send a welcome email to new customers This process describes how to send new customers a welcome email which includes dynamically added content, such as their first name, last name, or other related customer information. 1. In the left navigation bar, press . 2. In the **Data and alerts** section, press **Email notifications**. 3. Press **Core events**, then press the **Customer created** event. 4. Press **Create email notification**. 5. In the **Notification name** field, enter a unique name for the email notification. 6. In the **Labels** field, enter one or more labels to help categorize the email notification. 7. Optionally, to specify additional conditions on when the email is sent: 1. In the **Conditions** section, clear the **No conditions** checkbox. 2. In the **Select filter** dropdown, select a filter. 3. In the next field, select an operation. 4. In the next field, enter or select values. 5. Optionally, to add another filter, press **Add filter**. 8. In the **Emails** section, press **Add email**. 9. In the **Title** field, enter a name. This name is referenced in reports. 10. In the **From** field, select your email address. If your address is not listed, press **Add email address**. 11. In the **To** field, press in the field, and select the `invoice.customer.primaryAddress.emails.0.value` placeholder text. 12. In the **Subject** field, enter `Welcome to !`. 13. In the **Email content** field, compose your email. 14. Press **Add placeholders**, to add dynamic content such as customer first name and last name, or any other customer related information. 15. Press **Save notification**. ## Send a declined payment notification This process describes how to send a declined payment email to a customer. 1. In the left navigation bar, press . 2. In the **Data and alerts** section, press **Email notifications**. 3. Press **Billing events**, then press the **Renewal invoice payment declined** event. 4. Press **Create email notification**. 5. In the **Notification name** field, enter a unique name for the email notification. 6. In the **Labels** field, enter one or more labels to help categorize the email notification. 7. Optionally, to specify additional conditions on when the email is sent: 1. In the **Conditions** section, clear the **No conditions** checkbox. 2. In the **Select filter** dropdown, select a filter. 3. In the next field, select an operation. 4. In the next field, enter or select values. 5. Optionally, to add another filter, press **Add filter**. 8. In the **Emails** section, press **Add email**. 9. In the **Title** field, enter a name. This name is referenced in reports. 10. In the **From** field, select your email address. If your address is not listed, press **Add email address**. 11. In the **To** field, press in the field, and select the `invoice.customer.primaryAddress.emails.0.value` placeholder text. 12. In the **Subject** field, enter `New invoice issued`. 13. In the **Email content** field, compose your email. Press **Add placeholders**, to add dynamic content such as a payment link and customer information. 14. Select the **Attach invoice** checkbox. 15. Press **Save notification**. When notifying a customer that a payment is declined, do not use the payment declined event. In most cases, you do not want to send an email when a customer's first payment is declined. If the first payment is declined, the customer's order is not activated. ## Send a past due invoice notification This process describes how to send the customer an email notification when an invoice is past due. 1. In the left navigation bar, press . 2. In the **Data and alerts** section, press **Email notifications**. 3. In the **Customer notifications** section, press **Billing events**, then select the **Invoice past due** event. 4. Press **Create notification**. 5. In the **Notification name** field, enter a unique name for the notification. 6. In the **Labels** field, enter one or more labels to help categorize the notification. 7. Optionally, to specify additional conditions on when the notification is sent: 1. In the **Conditions** section, clear the **No conditions** checkbox. 2. In the **Select filter** dropdown, select a filter. 3. In the next field, select an operation. 4. In the next field, enter or select values. 5. Optionally, to add another filter, press **Add filter**. 8. In the **Emails** section, press **Add email**. 9. In the **Title** field, enter a meaningful title. 10. In the **From** field, select your address. If your address is not listed, press **Add email address**. 11. In the **To** field, add a placeholder or an email address. 12. Optionally, to stay informed on all emails, press **Add BCC** and enter your email or a support email. 13. In the **Subject** field, enter a subject or placeholder. 14. In the **Email content** field, enter the content of the email. 15. Press **Add placeholder** to add placeholders to the email content, such as first name, last name, invoice number, and amount. 16. At the end of the email content, press **Add placeholder**, then select **Invoice payment link**. In the bottom of the email, press **Add placeholder**, then select **Invoice payment link**. When customers click the invoice payment link, they are redirected to a payment form where they can pay the invoice. 17. Optionally, to attach the invoice to the email, select the **Attach invoice** checkbox. 18. Press **Save notification**.