# SMS and email providers

> Connect your own Twilio or Brevo account to send SMS campaigns, or your own Mailgun, Postmark or SendGrid account to send campaign emails.

The **Marketing: SMS** and **Marketing: Email** sections of the Integrations page connect your own messaging accounts to Leal for [campaigns](https://docs.getleal.com/campaigns). To choose which one a campaign uses, see [Sender settings](https://docs.getleal.com/campaigns/sender-settings). SMS campaigns always need one. Email campaigns don't: Leal sends them for you unless you choose otherwise.

## SMS: Twilio or Brevo

SMS campaigns send through your own Twilio or Brevo account. You keep your registered sender, you pay your provider directly, and Leal adds nothing to the cost. Connect one before adding an SMS step to a campaign.

To connect:

1. Find **Twilio** or **Brevo** under **Marketing: SMS** and click **Connect**.
2. Enter your credentials:
   - **Twilio:** your **Account SID** and **Auth Token**.
   - **Brevo:** your **API key**.
3. Enter the **Sender**: what customers see the message from. Use a phone number in international format starting with + (such as +353871234567), or a sender ID of 3 to 11 letters and numbers (such as BeanAndCo). It must already be registered with your provider.
4. Click **Connect**.

Leal checks the details with your provider before saying you're connected. If the provider refuses them, the card shows **Action needed** and tells you why.

> [!TIP]
> With Twilio you can paste a Messaging Service SID (it starts with MG) as the sender instead. Twilio then picks the right sender for each country, which is the best option if you text customers in more than one country.

> [!WARNING]
> Brevo can block API calls from addresses it doesn't recognise, which stops campaigns sending. Before you connect, turn off IP blocking for API keys in your Brevo security settings.

## Email: Mailgun, Postmark or SendGrid

Leal sends campaign emails for you, so you don't need any of these to start. Connect your own provider if you already use one and want campaign emails to go through it.

| Provider | What it asks for |
| --- | --- |
| **Mailgun** | **API key**, **Sending domain** and **Region** (United States or Europe) |
| **Postmark** | **Server token** |
| **SendGrid** | **API key** |

Connecting a provider doesn't switch your campaigns over. You choose it for each campaign, so campaigns you already have keep sending the way they did.

> [!NOTE]
> For Mailgun, pick the region your domain was created in. An EU domain checked against the US region is refused, which looks like a wrong API key.

## Changing or disconnecting

- Click **Manage** to change the sender or re-enter credentials, then **Save changes**. Leave a credential field blank to keep what's stored. Re-entering a credential is how you fix a provider that stopped accepting it.
- Click **Disconnect** to remove it. You can reconnect later.

Credentials are encrypted when stored, and the Integrations page only ever shows the last few characters.

## Gotchas

- **The sender must be registered with your provider.** An unregistered sender fails at the phone network, not in Leal.
- **If your provider stops accepting your details**, campaigns can't send through it. The card says so; click **Manage** and re-enter them.
