---
title: "Email addresses"
manual: "Cart"
version: "12.4"
permalink: "https://docs.typo3.org/permalink/extcode/cart:mail-addresses@12.4"
source: "Administrator/Configuration/Email/EmailAddresses/Index.rst"
rendered: "2026-11-20T20:45:06+00:00"
---

# Email addresses {#mail-addresses}

Email addresses must be configured for sending emails. This can be done in
the backend in the plugin settings, but also configured via TypoScript.

**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 {
            fromName = Your Brand name
            fromAddress = cart.buyer.sender@example.com
            ccAddress = cart.buyer.cc1@example.com, cart.buyer.cc2@example.com
            bccAddress = cart.buyer.bcc1@example.com, cart.buyer.bcc2@example.com
            replyToAddress = cart.buyer.reply@example.com
        }

        // Used for emails sent to the shop owner (=seller)
        seller {
            fromName = Cart TYPO3 System
            fromAddress = cart.seller.sender@example.com
            toAddress = cart.seller.to1@example.com, cart.seller.to2@example.com
            ccAddress = cart.seller.cc1@example.com, cart.seller.cc2@example.com
            bccAddress = cart.seller.bcc1@example.com, cart.seller.bcc2@example.com
        }
    }
}
```

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

-   **buyer.fromName**

    -   *Type:* string

    Name displayed for the email address sent to the buyer (=customer).

-   **buyer.fromAddress**

    -   *Type:* string

    Defines from which sender address the emails are sent to the buyer.

-   **buyer.ccAddress**

    -   *Type:* string

    Defines to which addresses the email should be sent in CC (Carbon Copy).

    Multiple recipients can be given separated by commas.

-   **buyer.bccAddress**

    -   *Type:* string

    Defines to which addresses the email should be sent in BCC
    (Blind Carbon Copy).

    Multiple recipients can be given separated by commas.

-   **buyer.replyToAddress**

    -   *Type:* string

    Defines to which address should be used as Reply To.
    This will override the `['MAIL']['defaultMailReplyToAddress']` configuration.

-   **seller.fromName**

    -   *Type:* string

    Name displayed for the email address sent to the seller (=shop owner).

-   **seller.fromAddress**

    -   *Type:* string

    Defines from which sender address the emails are sent to the seller/shop
    operator.

-   **seller.toAddress**

    -   *Type:* string

    Defines to which recipient addresses the emails to the seller/shop operator
    are sent.

    Multiple recipients can be given separated by commas.

-   **seller.ccAddress**

    -   *Type:* string

    Defines to which addresses the email should be sent in CC (Carbon Copy).

    Multiple recipients can be given separated by commas.

-   **seller.bccAddress**

    -   *Type:* string

    Defines to which addresses the email should be sent in BCC
    (Blind Carbon Copy).

    Multiple recipients can be given separated by commas.

## Site set {#site-set}

With the feature toggle `cart.useNewOrderMailSender` the emails at the end
of an order are sent by `\Extcode\Cart\Mail\OrderMailSender`. It reads the
email addresses from the site settings `extcode.cart.mail` of the site set
`extcode/cart-mail` of the site of the storage page of the order, see
[Site sets](https://docs.typo3.org/permalink/extcode/cart:configuration-site-sets@12.4). `plugin.tx_cart.mail` and the email
addresses in the settings of the cart plugin are not used then.

The emails on status changes always use these addresses, see
[Emails on status changes](https://docs.typo3.org/permalink/extcode/cart:status-change-emails@12.4).

**e.g. config/system/additional.php**

```php
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['cart.useNewOrderMailSender'] = true;
```

The keys are the same as in TypoScript, but the addresses are lists:

**config/sites/\<site>/settings.yaml**

```yaml
extcode:
  cart:
    mail:
      buyer:
        fromName: 'Your Brand name'
        fromAddress: 'cart.buyer.sender@example.com'
        ccAddress: ['cart.buyer.cc1@example.com', 'cart.buyer.cc2@example.com']
        bccAddress: []
        replyToAddress: ['cart.buyer.reply@example.com']
      seller:
        fromName: 'Cart TYPO3 System'
        fromAddress: 'cart.seller.sender@example.com'
        toAddress: ['cart.seller.to1@example.com', 'cart.seller.to2@example.com']
        ccAddress: []
        bccAddress: []
```

Without `fromAddress` no email is sent to the buyer or to the seller. The
seller needs `toAddress`, otherwise an error is written to the order log.
The attachments are still configured with TypoScript, see
[Email attachments](https://docs.typo3.org/permalink/extcode/cart:mail-attachments@12.4).
