---
title: "Email attachments"
manual: "Cart"
version: "12.1"
permalink: "https://docs.typo3.org/permalink/extcode/cart:mail-attachments@12.1"
source: "Administrator/Configuration/Email/EmailAttachments/Index.rst"
rendered: "2026-11-14T23:50:30+00:00"
---

# Email attachments {#mail-attachments}

Email attachments can be configured as shown below.

**Can be set in e.g. EXT:sitepackage/Configuration/TypoScript/setup.typoscript**

```typoscript
plugin.tx_cart {
    mail {
        // Used for emails sent to the customer (=buyer)
        buyer {
            attachments {
                1 = EXT:sitepackage/Resources/Public/Files/AGB.pdf
            }
            // This needs EXT:cart_pdf to work!
            attachDocuments {
               order = 1
               invoice = 1
               delivery = 1
            }
        }

        // Used for emails sent to the shop owner (=seller)
        seller {
            attachments {
                1 = EXT:sitepackage/Resources/Public/Files/AGB.pdf
            }
            // This needs EXT:cart_pdf to work!
            attachDocuments {
               order = 1
               invoice = 1
               delivery = 1
            }
        }
    }
}
```

## plugin.tx_cart.mail {#plugin-tx-cart-mail}

-   **buyer.attachments.\<n>**

    -   *Type:* array

    Defines one or more email attachments to be sent to the buyer.

    These can be, for example, documents with the general terms and conditions.

-   **buyer.attachDocuments.\<n>**

    -   *Type:* array

    **This needs EXT:cart_pdf to work.**

    Defines one or more email attachments of the generated PDF documents to be
    sent to the buyer.

    This can be the order confirmation, the invoice or a separate document.

-   **seller.attachments.\<n>**

    -   *Type:* array

    Defines one or more email attachments to be sent to the seller.

    These can be, for example, documents with the general terms and conditions.

-   **seller.attachDocuments.\<n>**

    -   *Type:* array

    **This needs EXT:cart_pdf to work.**

    Defines one or more email attachments of the generated PDF documents to be
    sent to the seller.

    This can be the order confirmation, the invoice or a separate document.
