Prompt
How do I send team invitation emails?
Latest observation
Sep 23, 2026
OpenAI APIWeb search: off
If you’re asking about sending team invitation emails in a product/app you’re building or using, the general flow is:
-
Collect invitee emails
- User enters one or more email addresses.
- Optionally choose role/permissions.
-
Create an invitation record
- Store:
- invitee email
- team/workspace ID
- role
- unique token
- expiration time
- invited by user ID
- Store:
-
Generate an invite link
- Example:
https://yourapp.com/invite स्वीकार?token=abc123 - The token should be random, single-use, and time-limited.
- Example:
-
Send the email
- Use an email service like:
- SendGrid
- Mailgun
- Amazon SES
- Postmark
- Email should include:
- who invited them
- team name
- call-to-action button/link
- expiration notice
- Use an email service like:
-
Accept invitation
- When the user clicks the link, verify:
- token is valid
- not expired
- email matches
- Then add them to the team and mark invite as accepted.
- When the user clicks the link, verify:
Example email
Subject: You’ve been invited to join Acme Team
Body:
Hi Jane,
You’ve been invited by Alex to join the Acme Team as a Member.
Click below to accept your invitation:
[Accept Invitation]This invitation expires in 7 days.
If you want to implement it
I can give you:
- a backend API design
- a Node.js / Python / PHP example
- or help with a specific platform like Gmail, Outlook, Slack, or Microsoft Teams.
If you tell me what stack or app you mean, I’ll tailor the exact steps.