# AWS SES / AWS Lambda mail receiver endpoint code?

**URL:** https://meta.discourse.org/t/aws-ses-aws-lambda-mail-receiver-endpoint-code/214391
**Category:** Support
**Created:** [January 10, 2022, 3:41pm UTC](https://meta.discourse.org/t/aws-ses-aws-lambda-mail-receiver-endpoint-code/214391 "2022-01-10T15:41:45Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 11, 2022, 6:56pm UTC](https://meta.discourse.org/t/aws-ses-aws-lambda-mail-receiver-endpoint-code/214391/8 "2022-01-11T18:56:02Z")

</div>

It’s not undocumented because it’s open source, it’s undocumented because no one (or not many) have asked.

> <https://github.com/discourse/discourse/blob/main/app/controllers/admin/email_controller.rb#L148-L149>

Suggestions that you want to POST the encoded email in an `email_encoded` thingy. `routes.rb` shows that it’s a POST and the route, which is `https://discourse.example.com/admin/email/handle_mail`. I got it from the mail receiver sample template (and I’d recommend that you just use that, as if you had, you’d be finished already) but it’s also in [discourse/config/routes.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/config/routes.rb#L171) (which isn’t immediately clear just what’s happening unless you understand rals).

---

_[View the full topic](https://meta.discourse.org/t/aws-ses-aws-lambda-mail-receiver-endpoint-code/214391)._
