FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse
stevekrouseClerk-to-Sendgrid2
Remix of danrrr/Clerk-to-Sendgrid
Public
Like
Clerk-to-Sendgrid2
Home
Code
3
README.md
H
email-body.tsx
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
https://stevekrouse--01985692322b71fa92401de28593fea2.web.val.run
README.md

Clerk to SendGrid Welcome Email

Automatically sends welcome emails when new users sign up via Clerk webhooks.

Example email for new user: Screenshot 2025-07-14 at 4.03.57 PM.png

Setup

  1. Set SENDGRID_API_KEY environment variable
  2. Update constants in main.tsx: FROM_EMAIL, FROM_NAME, EMAIL_SUBJECT and the email body in email-body.tsx
  3. Get HTTP endpoint URL for main.tsx
  4. Add that HTTP endpoint URL as a webhook in Clerk dashboard for user.created events
HTTP
  • email-body.tsx
    stevekrouse--01…a2.web.val.run
  • main.tsx
    stevekrouse--01…58.web.val.run
Code
README.md
H
email-body.tsx
H
main.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.