# Trying to set up reply by email: ActionController::RoutingError (No route matches \[POST\] "/admin/email/handle\_mail")

**URL:** https://meta.discourse.org/t/trying-to-set-up-reply-by-email-actioncontroller-routingerror-no-route-matches-post-admin-email-handle-mail/89960
**Category:** Self-hosting
**Created:** [June 15, 2018, 10:28am UTC](https://meta.discourse.org/t/trying-to-set-up-reply-by-email-actioncontroller-routingerror-no-route-matches-post-admin-email-handle-mail/89960 "2018-06-15T10:28:00Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Cameron\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cameron_d/32/97535_2.png) [@Cameron\_D](https://meta.discourse.org/u/Cameron_D)
#### Post date: [June 15, 2018, 11:09am UTC](https://meta.discourse.org/t/trying-to-set-up-reply-by-email-actioncontroller-routingerror-no-route-matches-post-admin-email-handle-mail/89960/3 "2018-06-15T11:09:02Z")

</div>

> [@anon20593648](#):
>
> There aren’t even any docs I can find explaining the format of the HTTP POST request to send to admin/email/handle\_mail. Just [this topic](https://meta.discourse.org/t/configuring-reply-via-email-e-mail/42026) which is not explicit at all.

That topic contains your answer:

> to push an email to Discourse, you need to pass the raw email content as the “email” parameter when POSTing to “`/admin/email/handle_mail`”

Easiest way to get reply by email working is to use the mail-receiver container template, rather than trying to work with all sorts of varying APIs from the different providers.

> [@Configure direct-delivery incoming email for self-hosted sites with Mail-Receiver](https://meta.discourse.org/t/straightforward-direct-delivery-incoming-mail/49487):
>
> Discourse is all about enabling civilized discussion. While plenty of people like a web interface, e-mail is still the “hub” of many people’s online lives. That’s why sending e-mail is so important, and when you’re sending e-mail, you really want to be able to receive it, too. There are several reasons why: If e-mails “bounce” (they can’t be delivered for some reason), you need to know about that. Repeatedly sending e-mails that bounce will get your e-mails flagged as spam. Receiving e-ma…

---

_[View the full topic](https://meta.discourse.org/t/trying-to-set-up-reply-by-email-actioncontroller-routingerror-no-route-matches-post-admin-email-handle-mail/89960)._
