feat(ma): add mail service - #62
Merged
Merged
Conversation
- FastAPI microservice for email campaigns - Campaign scheduling with multiple send times - Custom subjects per scheduled send - Automatic unsubscribe link injection - Token-based unsubscribe flow - Rate-limited bulk email sending - Execution history tracking - 126 tests with full coverage - CLI script for campaign management
Renamed the GitHub Actions workflow file from .yml to .yaml and updated workflow path references accordingly for consistency.
Adds BASE_URL to environment and config, enforces secure values for BASE_URL and UNSUBSCRIBE_SECRET_KEY in production, and ensures all datetime values use timezone-aware UTC. Updates scheduler and campaign logic to use BASE_URL for unsubscribe links. Improves SMTP connection error handling and updates tests for UTC datetimes.
Replaces 'form-backend' with 'form-service' and 'mail' with 'mail-service' in documentation files to standardize scope naming conventions across the project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a new email campaign microservice (
services/mail/) with the following features:scripts/run_mail_campaign.pyfor command-line campaign managementArchitecture
Files Changed
services/mail/- Complete microservicescripts/run_mail_campaign.py- CLI toolMakefile- Added mail service commandsREADME.md- Added mail service documentation.ai/INSTRUCTIONS.md- Added AI agent instructionsscripts/email_sender.py, etc.)Related Issue
Closes #26
Checklist