E-mail Providers Integration
Learn how to configure the Email channel
Email providers are the services that deliver notifications to your subscribers’ email. You must set up each provider individually in the Novu dashboard to enable delivery through the Email channel.
Novu provides a unified integration layer that connects your workflows to these email providers. Once you’ve added your integrations, Novu handles routing and delivery automatically, sending each email through the correct provider without requiring additional setup. This allows you to manage multiple email integrations and switch providers when needed.
Key features
- Multi-provider support: Integrate any major provider like SendGrid, SES, or Mailgun.
- Failover mechanisms: Automatically retry with a backup provider to ensure reliability.
- Activity tracking: Track delivery status, open rates, and more in the Novu dashboard.
How email works in Novu
Here’s the typical flow for sending an email notification through Novu:
Add an email provider
Start by adding an email provider in the Integration Store on your Novu dashboard. You can connect one or more integrations for different or the same providers.
To learn how to add an email provider, refer to the guide for the supported providers.
Add the Email channel to your workflow
Next, include an Email step in a workflow. This step defines when and how an email should be sent as part of your notification workflow.
Define the email content
Within the Email step, you can design your message using the built-in visual editor or code editor. Novu supports dynamic data from your payload, so each message can be personalized for the subscriber.
Store subscriber email addresses
Novu automatically sends the notification to the email address stored on the subscriber's profile. This profile is update either using the Novu dashboard or API.
Trigger the workflow
Trigger the workflow from your application code by sending an event to Novu. Novu automatically:
- Resolves the subscriber.
- Selects the correct provider.
- Renders the email template.
- Delivers the message through the configured email integration.
Configuring email providers
When you add an email provider in the Integration Store, you configure settings that are common to all email providers, as well as credentials specific to that provider.
Default sender settings
Novu asks for two default settings for any email provider you connect:
- Sender name: The name that appears in the recipient's "From" field.
- From email address: The email address the notification is sent from. For some email providers, including SendGrid, you must authenticate the From email address to make sure you're sending an email from an authorized address.
These are the default values used for every email sent via this integration. You can override them when triggering a workflow if needed.
Provider authentication
You must provide credentials specific to your email provider for a successful integration.
Setting up failover
Novu ensures high deliverability with an automatic failover system. You can have multiple active email providers in the same environment.
- Primary integration: You must designate one of your active providers as the primary provider. Novu always attempts to send the email using this provider first.
- Failover logic: If the primary provider fails to send the notification, then Novu automatically attempts to send the email through one of your other active providers.
This built-in redundancy means you don't have to manage provider downtime yourself.
Advanced email features
You can control advanced email features at runtime by passing data in your trigger call. This lets you send attachments, override default settings, or target a specific provider for a single notification.
Sending attachments
You can send attachments by passing an attachments array in the payload of your trigger. The attachment file can be provided as a buffer or a base64 encoded string.
There is a total limit of 20MB for all attachments included in an email.
Sending email overrides
You can override the email settings for a single trigger by passing an overrides object. This lets you override the following fields:
bccccfromaddressreplyTosenderNametexttoaddress
to field in the email overrides with the subscriber email. It does not replace it.Targeting a specific provider
By default, Novu uses your primary email provider. However, if you want to bypass this and force a specific, active integration for a trigger, use the integrationIdentifier.
This is useful if you have multiple active integrations for different purposes. For example, you might have one integration for transactional emails and one for marketing emails. You can find the integrationIdentifier for each provider in provider page in the Integration Store.
Supported providers
Here are the email providers that are currently supported by Novu. Select any provider to see its detailed setup guide.