• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
project logo

charmaine

Clerk-to-Sendgrid

Send welcome email when new users sign up
Public
Like
2
Clerk-to-Sendgrid
Home
Code
3
README.md
H
email-body.tsx
H
main.tsx
Branches
1
Pull requests
Remixes
3
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://charmaine--d268997e60e111f0acd10224a6c84d84.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
    charmaine--d2…84.web.val.run
  • main.tsx
    charmaine--bc…84.web.val.run
Code
README.md
H
email-body.tsx
H
main.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.