feat(email): invitation emails via Twilio (Vercel route) #23

Merged
tanweer919 merged 1 commits from tanweer919/lynkeduppro-crm:feat/login-methods into goutamnextflow 2026-07-13 14:18:31 +00:00
Collaborator

Sends team-invitation emails from a Vercel serverless route (/api/email/invite) using Twilio Emails API creds in Vercel env; from support@lynkedup.dev. Team Management emails on create + resend; copy-link remains a fallback.

Sends team-invitation emails from a Vercel serverless route (/api/email/invite) using Twilio Emails API creds in Vercel env; from support@lynkedup.dev. Team Management emails on create + resend; copy-link remains a fallback.
tanweer919 added 1 commit 2026-07-13 14:18:27 +00:00
- POST /api/email/invite: sends the invite email via the Twilio Emails API using
  server-only TWILIO_ACCOUNT_SID/TWILIO_AUTH_TOKEN (Vercel env), from
  EMAIL_FROM_ADDRESS (default support@lynkedup.dev). Fixed invite template; gated
  on a session cookie so it isn't an open relay.
- Team Management emails the invite on create and resend (token now returned by
  both), with the Copy-link as a fallback. Mock mode skips email.
tanweer919 merged commit 75417cb4f1 into goutamnextflow 2026-07-13 14:18:31 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Goutam/lynkeduppro-crm#23