
Who this guide is for
- Cursor developers who want email without the infrastructure headache
- Anyone with a Postgres database (Supabase, Neon, Railway, Render, RDS, or self-hosted)
- Vibe coders who want professional notifications in minutes
Why can’t I just ask Cursor to build email?
You could. Ask Cursor to send a welcome email when someone signs up. It’ll wire up an email provider and write the integration code. But then:- How do you preview that email with real user data before it goes out?
- How do you track who opened it? Who clicked?
- What happens when emails bounce?
- Are you setting up DKIM and SPF records for deliverability?
- What about retry logic when the provider has an outage?
- What about scheduled emails? Recurring digests? Drip sequences?
- After you’ve built a few workflows, how do you see how they’re all performing in one place?
- How do you iterate on email copy without redeploying your app?
Prerequisites
- A PostgreSQL database for your app (Supabase, Neon, Railway, Render, AWS RDS, Google Cloud SQL, or any Postgres)
- 5 minutes
Connect Dreamlit to your database
Dreamlit works with any PostgreSQL database. The setup depends on which provider you’re using.- Supabase
- Neon
- Railway / Render
- AWS RDS / Cloud SQL / Other
If your Cursor app uses Supabase, connecting is two clicks:That’s it. 2 clicks and you’re connected.
Create a Dreamlit account
Go to app.dreamlit.ai and sign up.
Example: Welcome email workflow
Let’s walk through creating a welcome email that sends when someone signs up.Step 1: Create the workflow
Click Create Workflow and describe what you want:“Send a welcome email when a new user signs up”The AI generates everything: the database trigger, email template, and copy.

Step 2: Preview with live data
Click any step to open the preview panel and see real data from your database flowing through the workflow.- Query steps show the data being fetched or filtered
- Email steps show the fully rendered email with actual user data
Step 3: Customize your email
The AI generates a starting point, but you can refine it:- Hover to edit: Hover over any text in the email preview and click to edit inline. Change headlines, body copy, or button text directly.
- Brand kits: Go to Settings → Brand Kits to define your logo, colors, fonts, and tone of voice. The AI will automatically apply your brand to new emails. Learn more about brand kits →
- Chat with AI: Ask Dreamlit to make changes: “Make the tone more casual” or “Add a section about our mobile app.”
Step 4: Publish
Once you’re happy with the preview, click Publish. Dreamlit installs a lightweight trigger on your database and starts watching for new signups.Writing code that triggers emails
Dreamlit triggers emails based on database changes. When building with Cursor, focus on getting data into your database. Dreamlit handles the notification logic. Common patterns:| You want… | Write code that… |
|---|---|
| Welcome emails | Inserts a row into users on signup |
| Order confirmations | Inserts a row into orders on checkout |
| Comment notifications | Inserts a row into comments with the author and post |
| Payment receipts | Inserts or updates a row in payments when payment succeeds |
| Activity alerts | Logs actions to an activity or events table |
Deploy anywhere, emails still work
Dreamlit connects to your database, not your hosting provider. Whether you deploy to:- Vercel
- Railway
- Render
- Fly.io
- AWS / GCP / Azure
- Self-hosted
More workflow ideas
Looking for inspiration? Check out our use cases for example prompts across welcome emails, order confirmations, reminders, internal alerts, and more.Send from your own domain
By default, emails send from Dreamlit’s domain. To send from your own domain (like[email protected]), you can set up a custom email domain in minutes.
Add your domain
Go to Settings → Email Domains and click Add domain. Enter your domain (we recommend a subdomain like
mail.yourapp.com).Verify automatically
Dreamlit can automatically configure your DNS records for you. Just click Verify with your DNS provider, sign in to your provider, and authorize the changes.

FAQ
What databases does Dreamlit support?
What databases does Dreamlit support?
Dreamlit works with any PostgreSQL-compatible database: Supabase, Neon, Railway, Render, AWS RDS, Google Cloud SQL, Azure Database for PostgreSQL, CockroachDB, and self-hosted Postgres. Support for additional databases is coming soon.
Why aren't my emails sending?
Why aren't my emails sending?
A few things to check:
- Is your workflow published? Saved workflows don’t run until you click Publish.
- Is the trigger table correct? Make sure it matches where your app actually writes data.
- Is data being written? Check your database to confirm rows are being created.
- Try the preview. Use the preview to test with sample data and verify the workflow runs.
Do I need to change my deployment?
Do I need to change my deployment?
No. Dreamlit connects to your database, not your hosting. Deploy your Cursor-built app anywhere: Vercel, Railway, Render, AWS, or self-hosted. As long as Dreamlit can reach your database, your email workflows will run.
Can I use this with any framework Cursor generates?
Can I use this with any framework Cursor generates?
Yes. Dreamlit works with Next.js, React, Vue, SvelteKit, Express, FastAPI, Django, Rails, and any other framework that writes to a Postgres database. The framework doesn’t matter. The database does.
Can Cursor edit my Dreamlit workflows?
Can Cursor edit my Dreamlit workflows?
No, and that’s the point. Your email workflows live in Dreamlit, separate from your codebase. This means you can iterate on emails without touching code, and non-technical teammates can make changes too.
Can I send Slack notifications too?
Can I send Slack notifications too?
Yes. Dreamlit supports Slack alongside email. Just describe what you want: “Notify our team on Slack when a new order comes in.” Learn more about Slack →
How do I test without emailing real users?
How do I test without emailing real users?
Use the preview feature to send test emails to yourself with real data from your database. Your workflow won’t email actual users until you publish it.
What if I'm already using Resend, SendGrid, or another email provider?
What if I'm already using Resend, SendGrid, or another email provider?
Dreamlit works alongside traditional email providers. Since we take a fundamentally different approach (database-driven, AI-generated workflows), you don’t need to migrate off your existing setup. Try Dreamlit for your next workflow and keep using your current provider for everything else.
