cms.c2sgmbh/tests/int
Martin Porwoll 19fcb4d837 feat: implement multi-tenant email system with logging
- Add Payload email adapter for system emails (auth, password reset)
- Add EmailLogs collection for tracking all sent emails
- Extend Tenants collection with SMTP configuration fields
- Implement tenant-specific email service with transporter caching
- Add /api/send-email endpoint with:
  - Authentication required
  - Tenant access control (users can only send for their tenants)
  - Rate limiting (10 emails/minute per user)
- Add form submission notification hook with email logging
- Add cache invalidation hook for tenant email config changes

Security:
- SMTP passwords are never returned in API responses
- Passwords are preserved when field is left empty on update
- Only super admins can delete email logs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-07 20:16:54 +00:00
..
api.int.spec.ts Initial commit 2025-11-26 21:18:31 +00:00
email.int.spec.ts feat: implement multi-tenant email system with logging 2025-12-07 20:16:54 +00:00
i18n.int.spec.ts test: add E2E and integration tests with documentation 2025-12-01 08:19:52 +00:00
search.int.spec.ts test: add E2E and integration tests with documentation 2025-12-01 08:19:52 +00:00