Clerk-to-Sendgrid2
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://stevekrouse--01985692322b71fa92401de28593fea2.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
