# Private Message Send API

**URL:** https://meta.discourse.org/t/private-message-send-api/27593
**Category:** Support
**Created:** [2015年四月15日 12:44 UTC](https://meta.discourse.org/t/private-message-send-api/27593 "2015-04-15T12:44:59Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![sarahann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahann/32/96703_2.png) [@sarahann](https://meta.discourse.org/u/sarahann)
#### Post date: [2018年七月10日 21:12 UTC](https://meta.discourse.org/t/private-message-send-api/27593/18 "2018-07-10T21:12:20Z")

</div>

What if you use an email template as a message?

I am going to the email\_templates endpoint, grabbing the template I want, then send that as a private message. However, none of the strings are replaced in the message to the user. The message contains %{site\_name} and ${base\_url} inside the message text.

Just wondering how/when in the flow does Discourse substitute these (I couldn’t find any evidence).

---

_[View the full topic](https://meta.discourse.org/t/private-message-send-api/27593)._
