routing.channels instead is supported, and sends through that one provider.
Route to the channel first
Routing to a channel is what Courier recommends. Attach your providers to it, address the recipient, and route to the channel by name. Courier then tries that channel’s providers in and moves to the next one when a send fails. A provider you connect later joins the order without a code change. Pin a provider only for the cases below.When to pin one
- Smoke-testing a provider you just connected, before it carries real traffic.
- Reproducing one provider’s behavior while you debug a delivery.
- Splitting traffic across two providers on the same channel, such as a transactional sender and a bulk sender.
What pinning costs
A provider key selects, it doesn’t install. Connect the provider under , then add it to the channel in the template’s routing selector. A channel delivers only through the providers attached to it.