- Using your customer’s email service provider
- Sending from your customer’s email domain
Prerequisites
- An email provider integration configured in your Courier workspace (e.g., Mailgun, SendGrid, Postmark)
- Your customer’s email provider API key
- Your customer’s verified sender domain on their provider
Set Up Email Service Provider Integrations
- Add an integration in your Courier workspace for each email provider you want to support
- Add those integrations to the email channel of the notification template you want to white-label
The initial API keys for these integrations don’t need to be valid if you always override them via the Send API.
Configure Provider Selection
Use provider-level conditions to determine which provider to use. For example, pass aprovider field in your data object and set a condition that enables a specific provider only when that value matches.
Override the API Key
When sending an email, provide your customer’s API key using theproviders override:
Set the ‘From’ Email Address
To send from your customer’s email address:- Use a variable in the email channel settings for the From field (e.g.,
{customer_from_email}) - Pass that variable in the
dataobject when sending