emailhttpwebhooksmailgun

How to forward incoming mail to an HTTP endpoint?


I would like to programmatically receive e-mails without the hassle of handling standard mail protocols (SMTP).

Is it possible to set a Mailgun route to forward (POST) all mail to an HTTP(S) endpoint? Currently, it seems to me that the provided webhooks can only notify you, rather than POST an entire email.


Solution

  • The Mailgun Routes API will notify you, and also provide a URL where you can download the full email content.

    If that is not sufficient, you might want to look at SendGrid or Mandrill. I believe Mandrill POSTs the entire email data in their webhook.