What problem does it solve?
Building email-to-app workflows requires receiving and parsing inbound email programmatically, which involves DNS configuration, webhook endpoints, and MIME parsing that are easy to get wrong.
Core Features & Use Cases
- Inbound Parse Setup: Guides MX record configuration pointing to mx.sendgrid.net and webhook registration in the SendGrid Console, recommending subdomains to avoid disrupting existing email.
- Parsed and Raw Modes: Explains the form-data fields SendGrid POSTs (from, subject, text, html, envelope, attachments) and when to use raw MIME mode for full headers and DKIM signatures.
- Attachment Handling and Security: Demonstrates processing attachment files in a Flask handler, plus ECDSA signed webhook verification and sanitization of untrusted email content.
- Use Case: Build a support ticket pipeline where emails sent to inbound.yourdomain.com are parsed by your webhook and converted into tickets with attachments preserved.
Quick Start
Set up a SendGrid Inbound Parse webhook endpoint in Flask that receives parsed email fields and attachments for the subdomain inbound.yourdomain.com.