Implement Mailgun email event tracking with webhook handler and admin integration#681
Open
Copilot wants to merge 11 commits into
Open
Implement Mailgun email event tracking with webhook handler and admin integration#681Copilot wants to merge 11 commits into
Copilot wants to merge 11 commits into
Conversation
Contributor
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
…tion Co-authored-by: A1L13N <193832434+A1L13N@users.noreply.github.com>
… issue Co-authored-by: A1L13N <193832434+A1L13N@users.noreply.github.com>
…tion Co-authored-by: A1L13N <193832434+A1L13N@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] implement a simple email tracker similar to this @alphaonelabs/alphaonelabs-education-website/pull/569 however make it for mailgun
Implement Mailgun email event tracking with webhook handler and admin integration
Oct 4, 2025
A1L13N
approved these changes
Oct 4, 2025
Contributor
🚨 Missing Open Issue LinkThis pull request does not reference any open GitHub issue via the Development section. PRs must be linked to an open issue using GitHub’s "Development" section (on the right sidebar). How to fix this:
This PR will be automatically closed. You can reopen it after linking an open issue. Thank you! |
Contributor
|
@copilot Fix lints |
… string Co-authored-by: A1L13N <193832434+A1L13N@users.noreply.github.com>
Contributor
Author
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.
Summary
This PR implements a complete email event tracking system for Mailgun webhooks, mirroring the functionality of PR #569 for SendGrid. The implementation includes:
✅ Webhook handler with HMAC-SHA256 signature verification
✅ EmailEvent model and Profile extensions for tracking metrics
✅ Admin interface integration with color-coded status display
✅ Slack notifications for email events
✅ 7 comprehensive tests (100% pass rate)
✅ Complete documentation in docs/MAILGUN_EMAIL_TRACKING.md
✅ All linting checks passing (black, isort, flake8)
Fixed a minor formatting issue in
web/admin.pywhere there was an extra backslash in theformat_htmlstring that was causing black to fail.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.