# Incoming email customizable POST parameter name

**URL:** https://meta.discourse.org/t/incoming-email-customizable-post-parameter-name/105707
**Category:** Feature
**Created:** [1월 4, 2019, 8:08오후 UTC](https://meta.discourse.org/t/incoming-email-customizable-post-parameter-name/105707 "2019-01-04T20:08:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tomsmyth1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tomsmyth1/32/106978_2.png) [@tomsmyth1](https://meta.discourse.org/u/tomsmyth1)
#### Post date: [1월 4, 2019, 8:08오후 UTC](https://meta.discourse.org/t/incoming-email-customizable-post-parameter-name/105707/1 "2019-01-04T20:08:57Z")

</div>

Discourse wants incoming emails to arrive as raw MIME in a POST param called `email`.

[Mailgun](https://documentation.mailgun.com/en/latest/user_manual.html#routes) sends its raw MIME body in a POST parameter called `body-mime`. Bummer!

I saw that someone wrote a [plugin](https://github.com/reallyreally/discourse-mailgun) for accepting incoming mail from Mailgun, but it seems a shame to do all that when it’s just a difference in param name.

Would y’all be open to a PR making is possible to specify a list of alternate POST param names in which to look for the email content? Or is there an easier way that I’m missing?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [1월 7, 2019, 12:23오전 UTC](https://meta.discourse.org/t/incoming-email-customizable-post-parameter-name/105707/2 "2019-01-07T00:23:09Z")

</div>

> [@tomsmyth1](#):
>
> Would y’all be open to a PR making is possible to specify a list of alternate POST param names in which to look for the email content? Or is there an easier way that I’m missing?

If you can confirm you can get incoming mail going with maligun with minimal changes (simply telling Discourse to look at another param) then sure.

But first … how is this secured?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [8월 28, 2019, 7:22오후 UTC](https://meta.discourse.org/t/incoming-email-customizable-post-parameter-name/105707/3 "2019-08-28T19:22:25Z")

</div>

Curious what ever happened to this.
