# Code for receiving emails via Discourse API

**URL:** https://meta.discourse.org/t/code-for-receiving-emails-via-discourse-api/96894
**Category:** Support
**Created:** [September 10, 2018, 8:56pm UTC](https://meta.discourse.org/t/code-for-receiving-emails-via-discourse-api/96894 "2018-09-10T20:56:25Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [September 10, 2018, 11:31pm UTC](https://meta.discourse.org/t/code-for-receiving-emails-via-discourse-api/96894/3 "2018-09-10T23:31:01Z")

</div>

> [@sudoman](#):
>
> Is there a preexisting code base out there for pushing emails to Discourse’s incoming email API?

> [@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/code-for-receiving-emails-via-discourse-api/96894)._
