How It Works
The email service (backend/app/services/email.py) has two modes:
Development Mode (default)
WhenSMTP_HOST is empty (the default), all emails are printed to the backend console:
Production Mode
Set these environment variables to enable real SMTP delivery:Email Types
| Trigger | Subject | Content |
|---|---|---|
| User invited | ”You’ve Been Invited” | Login URL, email, temp password |
| Forgot password | ”Reset Your Password” | Reset link with token (1-hour expiry) |
| Password changed | ”Password Changed” | Confirmation, contact admin if unexpected |
| Signup | ”Welcome to NIL Benchmark” | Institution name, plan tier, login URL |
| Tier upgrade | ”Access Granted” | New tier features description |