A user encounters an ActionController::RoutingError when setting up reply-by-email in Discourse, specifically with Mailgun, and later receives a 400 error. They note the lack of clear documentation on the required HTTP POST format for /admin/email/handle_mail. Another user clarifies that the raw email content must be passed as the email parameter in the POST request and recommends using the mail-receiver container template for a simpler setup. The user thanks the responder for the guidance anon20593648, Cameron_D, anon20593648.
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.
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 which is not explicit at all.
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.