Clerk-to-Sendgrid
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.
https://charleslehman--019918561106716f935130f59bb6e255.web.val.run
Automatically sends welcome emails when new users sign up via Clerk webhooks.
Example email for new user:
- Set
SENDGRID_API_KEYenvironment variable - Update constants in
main.tsx:FROM_EMAIL,FROM_NAME,EMAIL_SUBJECTand the email body inemail-body.tsx - Get HTTP endpoint URL for
main.tsx - Add that HTTP endpoint URL as a webhook in Clerk dashboard for
user.createdevents