Frappe Sendgrid Event
Receive and track SendGrid email events in Frappe via webhooks
- Author: rtCamp
- Repository: https://github.com/rtCamp/frappe-sendgrid-event
- GitHub stars: 0
- Forks: 0
- License: AGPL-3.0
- Category: Integrations
- Maintenance: Actively Maintained
- Frappe versions: develop
Install Frappe Sendgrid Event
bench get-app https://github.com/rtCamp/frappe-sendgrid-event
Add the Frappe Gems badge to your README
Maintain Frappe Sendgrid Event? Paste this into your README:
[](https://frappegems.com/gems/apps/rtCamp/frappe-sendgrid-event)
About Frappe Sendgrid Event
Frappe SendGrid Event
Receive and track SendGrid email delivery events in Frappe via webhooks.
This app integrates directly with SendGrid's Event Webhook API to capture real-time email metrics (processed, delivered, bounce, dropped, deferred) and seamlessly links them to your Frappe Email Queue.
Features & Architecture
- High Throughput & Async Cron Processing: The webhook endpoint is designed for scale. A scheduled background job (cron) asynchronously processes pending events later, ensuring the webhook doesn't times out.
- Email Queue Linking: The app parses SendGrid's
smtp-idand correctly maps it to Frappe'smessage_id, linking the external delivery event directly back to the originalEmail Queuerecord. - Account Specific Filtering: Built to handle environments where multiple SendGrid accounts might route to the same instance. It checks the
email_accounttied to the outgoingEmail Queueand only logs events if they match the designated email account specified in the settings. - Secure by Default: Enforces ECDSA signature verification to prevent spoofed or unauthorized data from being injected into your database.
Setup & Configuration
- In your Frappe site, navigate to SendGrid Account.
- Create a new doc and check Enable Sendgrid Webhook.
- Enter your Webhook Verification Key (provided by SendGrid) to secure the endpoint.
- Select the specific Email Account you want to track events for. (Events tied to other email accounts will be safely ignored).
- Log in to your SendGrid Dashboard and navigate to Settings > Mail Settings > Event Webhook.
- Under HTTP POST URL, enter your Frappe site's webhook endpoint exactly as follows:
https:///api/method/frappe_sendgrid_event.api.sendgrid_webhook.handle - Select the delivery events you want to track. (Note: This app is configured to track
processed,delivered,bounce,deferred, anddropped). - Enable the integration and save your settings.
Installation
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch main
bench install-app frappe_sendgrid_event
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/frappe_sendgrid_event
pre-commit install
License
GNU AFFERO GENERAL PUBLIC LICENSE (v3)
Related Integrations apps for Frappe & ERPNext
- Insights — Open Source Business Intelligence Tool
- Raven — Simple, open source team messaging platform
- Frappe Whatsapp — WhatsApp cloud integration for frappe
- Frappe Assistant Core — Infrastructure that connects LLMs to ERPNext. Frappe Assistant Core works with the Model Context Protocol (MCP) to expose ERPNext functionality to any compatible Language Model
- Biometric Attendance Sync Tool — A simple tool for syncing Biometric Attendance data with your ERPNext server
- Frappe React Sdk — React hooks for Frappe
- Frappe Js Sdk — TypeScript/JavaScript library for Frappe REST API
- Mcp — Frappe MCP allows Frappe apps to function as MCP servers