---
title: "Feature: #843 - Emails on status changes of orders"
manual: "Cart"
version: "main"
permalink: "https://docs.typo3.org/permalink/extcode/cart:feature-843-emails-on-status-changes-of-orders@main"
source: "Changelog/12.4/Feature-843-StatusChangeEmails.rst"
rendered: "2026-11-20T20:29:02+00:00"
---

# Feature: #843 - Emails on status changes of orders {#feature-843-emails-on-status-changes-of-orders}

See [Issue 843](https://github.com/extcode/cart/issues/843)

## Description {#description}

EXT:cart sends emails when the payment or the shipping status of an order is
changed, for the transitions configured in the site settings
`extcode.cart.statusChange.mail.payment` and
`extcode.cart.statusChange.mail.shipping` of the site of the order:

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

```yaml
extcode:
  cart:
    statusChange:
      mail:
        payment:
          pendingToPaid:
            from: pending
            to: paid
            recipients: [buyer]
```

The addresses of the recipients `buyer` and `seller` are the ones of the
site settings `extcode.cart.mail` (site set `extcode/cart-mail`, see
#845). The emails get the attachments of the `AttachmentEvent` like the
emails at the end of an order. As the site is the one of the storage folder
of the order, the emails are sent on the command line too. The template of
the example is `Mail/StatusChange/Payment/PendingToPaid/Buyer.html`.

The listener `\Extcode\Cart\EventListener\Order\StatusChange\Mail` of the
`AfterStatusChangeEvent` sends the emails. Listeners of this event can add
errors (`addError()`), which are returned in `StatusChangeResult::$errors`
and shown to the editor in the backend, e.g. if an email can not be sent.

See [Emails on status changes](https://docs.typo3.org/permalink/extcode/cart:status-change-emails@main).

## Impact {#impact}

The feature is experimental and disabled by default. It is enabled with the
feature toggle `cart.experimental.statusChangeMails`:

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

Classes and the configuration of the feature may change in minor
versions, even incompatibly.

No emails are configured by default, the emails at the end of an order are
not changed.
