# Intentando configurar respuesta por correo: 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:** [15 Junio, 2018 10:28 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:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![anon20593648](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon20593648](https://meta.discourse.org/u/anon20593648)
#### Post date: [15 Junio, 2018 10:28 UTC](https://meta.discourse.org/t/trying-to-set-up-reply-by-email-actioncontroller-routingerror-no-route-matches-post-admin-email-handle-mail/89960/1 "2018-06-15T10:28:00Z")

</div>

Recibo el siguiente error al configurar la respuesta por correo electrónico:

```plaintext
ActionController::RoutingError (No hay una ruta que coincida con [POST] "/admin/email/handle_mail")

```

El correo parece llegar correctamente (desde Mailgun), pero Discourse indica que esta ruta no existe.

¿Alguna idea?

---

<div class="post-metadata">

### Author: ![anon20593648](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon20593648](https://meta.discourse.org/u/anon20593648)
#### Post date: [15 Junio, 2018 11:02 UTC](https://meta.discourse.org/t/trying-to-set-up-reply-by-email-actioncontroller-routingerror-no-route-matches-post-admin-email-handle-mail/89960/2 "2018-06-15T11:02:16Z")

</div>

Stopped getting above error (no route matches), but still getting 400. Not fixed, apparently can’t do easily with mailgun, there’s a plugin but it’s [broken](https://github.com/reallyreally/discourse-mailgun/issues/1).

Maybe AWS SES & Lambda? I don’t understand, it seems like this should be a pretty darn standard feature, why is it so hard to find a simple tutorial?

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.

---

<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: [15 Junio, 2018 11:09 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…

---

<div class="post-metadata">

### Author: ![anon20593648](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon20593648](https://meta.discourse.org/u/anon20593648)
#### Post date: [15 Junio, 2018 11:55 UTC](https://meta.discourse.org/t/trying-to-set-up-reply-by-email-actioncontroller-routingerror-no-route-matches-post-admin-email-handle-mail/89960/5 "2018-06-15T11:55:47Z")

</div>

Awesome. So hard to find, so easy to set up. Thank you!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [26 Diciembre, 2020 08:05 UTC](https://meta.discourse.org/t/trying-to-set-up-reply-by-email-actioncontroller-routingerror-no-route-matches-post-admin-email-handle-mail/89960/6 "2020-12-26T08:05:22Z")

</div>


