如何将传入邮件转发到 HTTP 端点?
How to forward incoming mail to an HTTP endpoint?
我想以编程方式接收电子邮件,而无需处理标准邮件协议 (SMTP)。
是否可以设置 Mailgun 路由以将所有邮件转发 (POST) 到 HTTP(S) 端点?目前,在我看来,提供的 webhooks 只能通知您,而不是 POST 整封电子邮件。
Mailgun Routes API 会通知您,并且还会提供一个 URL,您可以在其中下载完整的电子邮件内容。
如果这还不够,您可能需要查看 SendGrid 或 Mandrill。我相信Mandrill POSTs the entire email data in their webhook.
Mailgun 支持使用路由下的转发操作将消息转发到 HTTP 端点。您可以转发 Sumo Parsed 格式或仅 post 使用转发 URL 中的标志的实际 mime 内容。
https://documentation.mailgun.com/en/latest/user_manual.html#routes
When you specify a URL of your application as a route destination through a forward() action, Mailgun will perform an HTTP POST request into it using one of two following formats:
Fully parsed: Mailgun will parse the message, transcode it into UTF-8 encoding, process attachments, and attempt to separate quoted parts from the actual message. This is the preferred option.
Raw MIME: message is posted as-is. In this case you are responsible for parsing MIME. To receive raw MIME messages, the destination URL must end with mime.
我想以编程方式接收电子邮件,而无需处理标准邮件协议 (SMTP)。
是否可以设置 Mailgun 路由以将所有邮件转发 (POST) 到 HTTP(S) 端点?目前,在我看来,提供的 webhooks 只能通知您,而不是 POST 整封电子邮件。
Mailgun Routes API 会通知您,并且还会提供一个 URL,您可以在其中下载完整的电子邮件内容。
如果这还不够,您可能需要查看 SendGrid 或 Mandrill。我相信Mandrill POSTs the entire email data in their webhook.
Mailgun 支持使用路由下的转发操作将消息转发到 HTTP 端点。您可以转发 Sumo Parsed 格式或仅 post 使用转发 URL 中的标志的实际 mime 内容。 https://documentation.mailgun.com/en/latest/user_manual.html#routes
When you specify a URL of your application as a route destination through a forward() action, Mailgun will perform an HTTP POST request into it using one of two following formats:
Fully parsed: Mailgun will parse the message, transcode it into UTF-8 encoding, process attachments, and attempt to separate quoted parts from the actual message. This is the preferred option. Raw MIME: message is posted as-is. In this case you are responsible for parsing MIME. To receive raw MIME messages, the destination URL must end with mime.