Implement Workstream G: Email Service with Postmark
- Add postmark dependency and email configuration constants - Implement sendVerificationEmail, sendPasswordResetEmail, sendLoginConfirmationEmail, and sendOrgInviteEmail helpers - Add HTML + text email templates with inline CSS - Support dev mode (EMAIL_DEV_MODE=true) for console logging - Use URL constructor for proper URL building - Add XSS protection with HTML escaping in templates - Create .env file with email environment variables Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2260,12 +2260,12 @@ _Depends on: D1 (auth middleware)_
|
||||
_Depends on: C2_
|
||||
_Can run parallel to D, E, F_
|
||||
|
||||
- [ ] **G1**: Set up Postmark client with env config
|
||||
- [ ] **G2**: Create email templates (verification, password reset, login confirmation, org invite)
|
||||
- [ ] **G3**: Implement `sendVerificationEmail()` helper
|
||||
- [ ] **G4**: Implement `sendPasswordResetEmail()` helper
|
||||
- [ ] **G5**: Implement `sendLoginConfirmationEmail()` helper
|
||||
- [ ] **G6**: Implement `sendOrgInviteEmail()` helper
|
||||
- [x] **G1**: Set up Postmark client with env config
|
||||
- [x] **G2**: Create email templates (verification, password reset, login confirmation, org invite)
|
||||
- [x] **G3**: Implement `sendVerificationEmail()` helper
|
||||
- [x] **G4**: Implement `sendPasswordResetEmail()` helper
|
||||
- [x] **G5**: Implement `sendLoginConfirmationEmail()` helper
|
||||
- [x] **G6**: Implement `sendOrgInviteEmail()` helper
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user