Samir Boulahtit
36603178c3
feat: add email settings with database overrides for admin and vendor
Platform Email Settings (Admin):
- Add GET/PUT/DELETE /admin/settings/email/* endpoints
- Settings stored in admin_settings table override .env values
- Support all providers: SMTP, SendGrid, Mailgun, Amazon SES
- Edit mode UI with provider-specific configuration forms
- Reset to .env defaults functionality
- Test email to verify configuration
Vendor Email Settings:
- Add VendorEmailSettings model with one-to-one vendor relationship
- Migration: v0a1b2c3d4e5_add_vendor_email_settings.py
- Service: vendor_email_settings_service.py with tier validation
- API endpoints: /vendor/email-settings/* (CRUD, status, verify)
- Email tab in vendor settings page with full configuration
- Warning banner until email is configured (like billing warnings)
- Premium providers (SendGrid, Mailgun, SES) tier-gated to Business+
Email Service Updates:
- get_platform_email_config(db) checks DB first, then .env
- Configurable provider classes accept config dict
- EmailService uses database-aware providers
- Vendor emails use vendor's own SMTP (Wizamart doesn't pay)
- "Powered by Wizamart" footer for Essential/Professional tiers
- White-label (no footer) for Business/Enterprise tiers
Other:
- Add scripts/install.py for first-time platform setup
- Add make install target
- Update init-prod to include email template seeding
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-05 22:23:47 +01:00
..
2025-11-05 21:52:22 +01:00
2026-01-03 18:29:26 +01:00
2025-12-12 23:28:16 +01:00
2025-12-18 21:05:50 +01:00
2025-12-31 22:57:07 +01:00
2025-12-21 21:13:08 +01:00
2025-12-07 17:04:43 +01:00
2025-12-21 20:57:47 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-31 23:15:07 +01:00
2025-12-28 21:12:22 +01:00
2025-12-28 20:34:09 +01:00
2025-12-22 22:39:34 +01:00
2025-12-07 17:04:43 +01:00
2026-01-03 18:48:59 +01:00
2025-12-31 18:59:41 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-25 12:27:12 +01:00
2025-12-20 20:33:48 +01:00
2025-12-13 12:57:26 +01:00
2025-12-06 20:08:22 +01:00
2025-12-11 17:47:57 +01:00
2025-12-25 00:30:33 +01:00
2025-12-25 00:21:16 +01:00
2025-12-22 22:39:34 +01:00
2025-12-13 14:45:18 +01:00
2025-12-21 21:50:48 +01:00
2025-12-04 22:24:45 +01:00
2025-12-21 21:55:56 +01:00
2025-12-20 20:33:48 +01:00
2025-12-25 17:20:56 +01:00
2025-12-21 22:08:28 +01:00
2026-01-05 22:23:47 +01:00
2026-01-01 12:58:09 +01:00
2025-12-31 22:49:56 +01:00
2025-12-21 21:55:56 +01:00
2025-12-21 21:55:56 +01:00
2025-12-12 23:53:23 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-07 17:04:43 +01:00
2025-12-26 20:51:13 +01:00
2025-12-26 20:51:13 +01:00
2025-12-25 21:51:10 +01:00
2025-12-12 22:36:04 +01:00
2025-12-25 21:51:10 +01:00
2025-12-25 11:20:17 +01:00
2025-12-07 17:04:43 +01:00
2025-12-31 23:00:59 +01:00
2025-12-07 17:04:43 +01:00