Skip to main content
SendGrid is an email delivery platform by Twilio for transactional messages, marketing campaigns, and analytics at scale. Connect it to Rocket and describe the email flow you want in chat. Rocket generates the complete sending logic: templates, API calls, event tracking, and delivery management.
SendGrid excels at high-volume sending and marketing campaigns. For simpler developer-focused transactional email, Resend may be a lighter option. Pair with Supabase for user data and Stripe for payment-triggered emails.

What you can use it for

Transactional emails

Password resets, order confirmations, invoices, and account verification emails triggered by user actions.

Marketing campaigns

Promotional emails, product announcements, and seasonal campaigns to segmented audiences.

Dynamic email templates

Reusable templates with personalized fields like names, order numbers, and custom data.

Analytics and delivery tracking

Track open rates, click rates, bounces, and delivery status for every email you send.

Newsletter signup and delivery

Collect subscriber emails and send regular newsletters with rich content.

Quick start

1

Get your SendGrid API key

Go to the SendGrid Dashboard, click Create API Key, give it a name, and copy the key. You also need to verify a sender identity under Settings > Sender Authentication.
2

Connect in chat

Open any Rocket project and type:
Connect SendGrid and send an order confirmation email when a user completes checkout.
Paste your API key when prompted. Rocket builds the email flow instantly.
3

Test the email

Trigger the flow in your app preview and check your inbox. Review delivery status in the SendGrid Activity Feed.
This connector is only available for Next.js TypeScript web build tasks.

Detailed setup

Get your SendGrid API key

Open SendGrid’s documentation to learn how to create your API key.
To generate an API key:
  1. Log in to SendGrid and go to Settings > API Keys.
  2. Click Create API Key.
  3. Add a name and choose permissions (Full Access or Restricted), then confirm.
  4. Copy the key. You will paste it into Rocket in the next step.
Never paste your SendGrid API key directly into Rocket chat. Always use the secure integration flow or the API key input in settings. If you believe your key has been exposed, revoke it from SendGrid Settings and create a new one.

Connect SendGrid to Rocket

There are two ways to connect SendGrid:Method 1: Use Rocket chat (fastest)In any project, open the chat panel and type:
  • Connect my SendGrid account to send a password reset email to users.
  • Connect SendGrid and set up order confirmation emails.
A popup appears where you can paste and save your API key.Method 2: From ConnectorsIn the preview toolbar, click the ... button and select Connectors. Click the SendGrid card.
When you connect SendGrid from Connectors, Rocket does not automatically create email flows. After saving your key, describe the email flow you want in chat.
Paste your API key into the field and click Save. A green dot appears next to SendGrid when the connection is active.Update or disconnectClick the SendGrid integration again. Replace the existing key or click Disconnect to remove it.

Prompt cookbook

Copy-paste these prompts after connecting SendGrid to build common email flows:
Use casePrompt
Order confirmationSend an order confirmation email through SendGrid when a user completes checkout. Include order total and items.
Password resetAdd a forgot-password flow that sends a reset link via SendGrid with a 15-minute expiration.
Welcome emailSend a welcome email through SendGrid when a new user signs up, with a getting-started guide.
Marketing campaignBuild an admin page where I can compose and send a marketing email to a SendGrid contact list.
Weekly digestSend a weekly digest email every Monday with the user's activity summary from the past week.
Abandoned cartSend an abandoned cart reminder email 2 hours after a user leaves items in their cart.
Invoice emailGenerate a PDF invoice and email it through SendGrid after each successful Stripe payment.
Re-engagementSend a re-engagement email to users who have not logged in for 30 days.
Event invitationSend an event invitation email with RSVP buttons that update the user's response in Supabase.
Shipping notificationSend a shipping notification email with tracking number and estimated delivery date.

Tips and limitations

  • Verify your sender identity first. SendGrid requires domain authentication or single-sender verification before you can send emails. Complete this in SendGrid Settings before connecting.
  • No permanent free tier. SendGrid’s free plan allows 100 emails per day with no expiration. Upgrade for higher volume. Check SendGrid pricing for current plans.
  • Manage contacts in SendGrid. You can add subscribers through Rocket, but deleting contacts and managing suppression lists must be done in the SendGrid dashboard.
  • One SendGrid account per project. Each Rocket project connects to one SendGrid API key. Use different projects for different SendGrid accounts.

What’s next?

Supabase

Store user data and trigger emails based on database events and user actions.

Stripe

Send payment confirmations and invoice emails after Stripe transactions.

Resend

Compare with Resend for simpler transactional email needs.

Google Analytics

Track email campaign performance alongside your website analytics.