# Customize Invite email message

**URL:** https://meta.discourse.org/t/customize-invite-email-message/45417
**Category:** Feature
**Tags:** feedback
**Created:** [2016年六月8日 05:43 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417 "2016-06-08T05:43:01Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年六月8日 05:43 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/1 "2016-06-08T05:43:01Z")

</div>

You can now customize Invite email message when inviting user to forum, topic or message.

 ![](https://global.discourse-cdn.com/meta/original/3X/1/4/14dda60d1a188a7734a9c31796da5a2964caea56.png)

The resulting invite email will look like:

 ![](https://global.discourse-cdn.com/meta/original/3X/a/f/af8d3360e6682eada5c8ed6f515099f895e3c7a4.png)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2016年六月8日 05:45 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/2 "2016-06-08T05:45:32Z")

</div>

> [@techAPJ](#):
>
> Make sure that {invite\_link} is present in your message as that block will be replaced by actual invite link. If {invite\_link} is not present in your message then your message will be ignored and default invite template will be used.

This worries me. If Discourse is checking for the link before sending, why not alert the user that they must include the link, instead of silently ignoring the message?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年六月8日 05:48 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/3 "2016-06-08T05:48:30Z")

</div>

> [@jomaxro](#):
>
> why not alert the user that they must include the link

Good point! Added on my list. ✏

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年六月8日 06:12 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/4 "2016-06-08T06:12:02Z")

</div>

Agreed – or just prevent the button from being pressed, if that key string is not present in the text? That might be simpler.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年六月8日 06:51 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/5 "2016-06-08T06:51:31Z")

</div>

My concern here is that people don’t understand templates.

Instead why not simply give them a dedicated spot in the invite for a “custom message” and then allow them to add it in here.

It just feels a little bit too flexible and “technical” this way to me.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年六月8日 08:01 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/6 "2016-06-08T08:01:20Z")

</div>

Sure, I support that – @techapj can you change it so

1. When “custom message” is expanded, a textbox with some suggested copy is shown. _No template_, just plain text:

2. If user enters text, that is inserted into the template on their behalf in the `{user_custom_message}` template field or what have you.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2016年六月8日 10:51 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/7 "2016-06-08T10:51:00Z")

</div>

Note that this is also safer – with the current design, the sender could totally subvert the message, maybe even use it for spamming.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2016年六月8日 13:02 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/8 "2016-06-08T13:02:15Z")

</div>

Okay, done via:

[https://github.com/discourse/discourse/commit/40e9e1be6642b1faa91c0f8c0aaec8f7cd5dfab5](https://github.com/discourse/discourse/commit/40e9e1be6642b1faa91c0f8c0aaec8f7cd5dfab5)

Updated the OP to reflect the same.

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [2016年六月11日 22:31 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/9 "2016-06-11T22:31:08Z")

</div>

hmm, this message could be better:

[FEATURE: user-friendly custom message · discourse/discourse@40e9e1b · GitHub](https://github.com/discourse/discourse/commit/40e9e1be6642b1faa91c0f8c0aaec8f7cd5dfab5#diff-aeb8651199334c1cb831e884ff85773aR1584)

> This invitation is from a trusted user, so you won’t need to log in.

How about something like this:

> This invitation is from a trusted user, so an account will be created for you automatically.
> 
> You’ll get another email with instructions on how to sign in next time.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年六月12日 10:00 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/10 "2016-06-12T10:00:27Z")

</div>

> [@riking](#):
>
> This invitation is from a trusted user, so an account will be created for you automatically.

Sure, I think that suffices; no need to add another extra line.

---

<div class="post-metadata">

### Author: ![almereyda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/almereyda/32/367792_2.png) [@almereyda](https://meta.discourse.org/u/almereyda)
#### Post date: [2016年七月27日 14:20 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/11 "2016-07-27T14:20:44Z")

</div>

It just happened the invite notification does not arrive from a named `From:` address, which is even considered invalid:

 ![](https://global.discourse-cdn.com/meta/original/3X/b/7/b70c3e4e6c2c50d326dff35c1231087fe10458b8.png)

Would it be a considerable, sane default to present the `title` as the sender of the invitation emails?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年十月21日 05:33 UTC](https://meta.discourse.org/t/customize-invite-email-message/45417/12 "2016-10-21T05:33:48Z")

</div>


