SendGrid
Configure SendGrid as an email provider in Notiflows
SendGrid is a cloud-based email delivery platform with analytics and deliverability tools.
Prerequisites
Before configuring SendGrid in Notiflows, you need:
- A SendGrid account
- A verified sender identity (domain or single sender)
- An API key with Mail Send permissions
Configuration
| Field | Required | Description |
|---|---|---|
| API Key | Yes | SendGrid API key with Mail Send permissions |
| From Email | Yes | A verified sender email address |
| From Name | No | Display name shown to recipients (e.g., My App) |
| Click Tracking | No | Track when recipients click links in your emails |
| Open Tracking | No | Track when recipients open your emails |
Step 1: Verify a sender identity
SendGrid requires you to verify the domain or email address you send from. Domain authentication is recommended for production because it improves deliverability and covers all addresses on that domain.
Option A: Authenticate a domain (recommended)
- Log in to the SendGrid dashboard
- In the left navigation, click Settings > Sender Authentication
- In the Domain Authentication section, click Get Started
- Select your DNS provider from the dropdown (or choose Other Host if not listed)
- Enter your root domain (e.g.,
example.com— do not includewwwor a subdomain) - Ensure Use automated security is checked — this generates CNAME records that SendGrid manages for you
- Click Next
- SendGrid provides three CNAME records — add these to your DNS provider
- Return to SendGrid and click Verify
DNS changes can take up to 48 hours to propagate. If verification fails, wait and try again. Contact SendGrid support if it's still unverified after 48 hours.
Option B: Verify a single sender
Use this for quick testing or if you don't control the sending domain.
- In the SendGrid dashboard, go to Settings > Sender Authentication
- Click Verify a Single Sender
- Click Create New Sender
- Fill in the required fields: From Name, From Email Address, Reply To, Business Address, and Nickname
- Click Create
- Check your inbox for a confirmation email and click the verification link
Single sender verification is not recommended for production. Free email addresses (gmail.com, yahoo.com, etc.) may fail DMARC checks and get rejected by recipient mail servers.
Step 2: Create an API key
- In the SendGrid dashboard, click Settings > API Keys
- Click Create API Key
- Enter a name (e.g.,
Notiflows) - Select Restricted Access
- Under Mail Send, toggle Mail Send to full access
- Click Create & View
- Copy the API key immediately
SendGrid only shows the API key once. Copy it now and store it securely. If you lose it, you'll need to create a new key.
Step 3: Set up in Notiflows
- Navigate to Channels in your project
- Click Create Channel
- Select Email as the channel type
- Select SendGrid as the provider
- Paste your API Key
- Enter your verified From Email and optionally a From Name
- Optionally enable Click Tracking and Open Tracking
- Save the channel
Templates
Email templates support three content types:
- Visual - Drag-and-drop editor for rich HTML emails
- HTML - Raw HTML with full control
- Plaintext - Simple text emails
Use Liquid templating for dynamic content:
Hi {{ recipient.first_name }},
{{ data.message }}Available variable contexts:
recipient.*- Recipient user data (first_name, last_name, email, etc.)actor.*- User who triggered the notificationdata.*- Custom payload passed when triggering the notiflow