Setup automated emails with Resend
@convex-dev/resend
component.
config.ts
:
.env.local
file.
onboarding@resend.dev
as the sender email. For production, verify your custom domain and use noreply@yourdomain.com
.convex/sendEmails.ts
:
<your-convex-http-url>/resend-webhook
yourdomain.com
)SENDER_EMAIL
to use your domain: noreply@yourdomain.com
RESEND_API_KEY
is set in Convex dashboard, not local .env.local
config.ts
has email: true
and resend: { enabled: true }
sendTestEmailToAddress
<your-convex-http-url>/resend-webhook
RESEND_WEBHOOK_SECRET
matches your Resend dashboardRESEND_API_KEY
is correct and active