# Understanding email in functionality

**URL:** <https://meta.discourse.org/t/understanding-email-in-functionality/74097>\
**Category:** Product Support\
**Tags:** email\
**Created:** [November 15, 2017, 11:27am UTC](https://meta.discourse.org/t/understanding-email-in-functionality/74097 "2017-11-15T11:27:42Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![BrianGillespie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/briangillespie/32/105563_2.png) [@BrianGillespie](https://meta.discourse.org/u/BrianGillespie)\
**Post date:** [November 28, 2017, 11:13pm UTC](https://meta.discourse.org/t/understanding-email-in-functionality/74097/10 "2017-11-28T23:13:12Z")

</div>

> [@Neil\_Brooks2](#):
>
> post into Discourse as staged users using their email address in the reply-to header of the email

I’ve got exactly the same desire. Some orders from our customers need to be approved before we charge their credit card and process the order. We currently do this by sending emails to our sales team. Sometimes the sales team needs to get in touch with the original user, and wants to reply.

So for us, the original email headers could be:

```plaintext
From: "Web Order Bot" <order-bot@our-domain.com> # (clearly whitelisted)
To: discourse-ingestion@discoursemail.com
Reply-To: "New Customer" <never-been-to-discourse@customer.com>
Subject: Order 192831

```

What I’d love to see is a new Discourse staged user `never-been-to-discourse@customer.com` get created, and the incoming message be _from_ that user. Our team could then reply directly to the customer in Discourse. As it stands, they reply to `order-bot@our-domain.com` which doesn’t work very well.

If we need to use an API to do this, can you point me to the APIs for creating new posts and staged users?

---

_[View the full topic](https://meta.discourse.org/t/understanding-email-in-functionality/74097)._
