协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
sendgrid-inbound【开发与工程】Use when receiving inbound emails with SendGrid (Inbound Parse Webhook). Covers DNS/MX setup, webhook handling, payload parsing, attachments, and security.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
SendGrid’s Inbound Parse Webhook receives emails for a specific hostname/subdomain, parses the message, and POSTs it to your webhook as multipart/form-data.
Key differences vs Resend:
mx.sendgrid.net for a dedicated hostname (recommended: subdomain).multipart/form-data, read text, html, headers, and attachments.Create an MX record for a dedicated hostname:
| Setting | Value |
|---|---|
| Type | MX |
| Host | parse (or another subdomain) |
| Priority | 10 |
| Value | mx.sendgrid.net |
Recommendation: Use a subdomain to avoid disrupting existing email providers (e.g., parse.example.com).
In SendGrid Console:
anything@parse.example.comSendGrid posts data like:
from, to, cc, subjecttext, htmlheaders (raw email headers)envelope (JSON with SMTP envelope data)attachments (count)attachmentX (file content; filename in part)Example fields (varies by config):
from: "Alice <alice@example.com>"
to: "support@parse.example.com"
subject: "Help"
text: "Plain text body"
html: "<p>HTML body</p>"
headers: "...raw headers..."
envelope: {"to":["support@parse.example.com"],"from":"alice@example.com"}
attachments: 2
attachment1: <file>
attachment2: <file>
Because Inbound Parse has no signature verification, treat inbound data as untrusted:
multipart/form-data).See: