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_KEY
environment variable - Update constants in
main.tsx
:FROM_EMAIL
,FROM_NAME
,EMAIL_SUBJECT
and 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.created
events