# Inviting CC'd users to a topic (or add)

**URL:** https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053
**Category:** Support
**Created:** [February 20, 2018, 5:08pm UTC](https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053 "2018-02-20T17:08:53Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jordan1909](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jordan1909](https://meta.discourse.org/u/jordan1909)
#### Post date: [February 20, 2018, 5:08pm UTC](https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053/1 "2018-02-20T17:08:53Z")

</div>

In our installation we have a need to include CC’d users on a topic.

Our sales team frequently forwards emails to our inbox which includes the forwarder but does not include the CC’d users. Now it does appear that a staged user is created unless I am mistaken.

Looking at the receiver.rb src it appears this functionality is pretty much there but doesn’t appear to be inviting the staged users as I would expect.

1. User forwards email in with [abc@defg.com](mailto:abc@defg.com) in CC.
2. If [abc@defg.com](mailto:abc@defg.com) is a user → Invite to topic
3. If [abc@defg.com](mailto:abc@defg.com) is not a user → Create staged users → Invite staged user to topic so abc gets all subsequent posts.

Is this not the intended functionality? Will I need to make a plugin for this? If a plugin is needed, is the raw email content accessible?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [February 20, 2018, 10:48pm UTC](https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053/2 "2018-02-20T22:48:10Z")

</div>

Are those topics group messages (PMs) or topics posted within a category? It definitely should work for groups.

---

<div class="post-metadata">

### Author: ![jordan1909](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jordan1909](https://meta.discourse.org/u/jordan1909)
#### Post date: [February 20, 2018, 10:58pm UTC](https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053/3 "2018-02-20T22:58:19Z")

</div>

This would be a public topic not a group private message.

---

<div class="post-metadata">

### Author: ![jordan1909](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jordan1909](https://meta.discourse.org/u/jordan1909)
#### Post date: [February 21, 2018, 2:20pm UTC](https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053/4 "2018-02-21T14:20:55Z")

</div>

@gerhard

For topics within a category, should I just make a plugin for that? I just want to ensure I’m not reinventing the wheel 😉

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [February 21, 2018, 2:28pm UTC](https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053/5 "2018-02-21T14:28:37Z")

</div>

Yes, you’ll need to write a plugin for that. Invites to a topic are only created when it’s a private message and that’s the intended behavior.

> <https://github.com/discourse/discourse/blob/main/lib/email/receiver.rb#L787-L789>

---

<div class="post-metadata">

### Author: ![jordan1909](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jordan1909](https://meta.discourse.org/u/jordan1909)
#### Post date: [February 21, 2018, 2:30pm UTC](https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053/6 "2018-02-21T14:30:59Z")

</div>

@gerhard

Ah misread it.

Thanks, I’ll “pluginirize” it!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/inviting-ccd-users-to-a-topic-or-add/81053/8 "2024-06-08T12:37:49Z")

</div>

This topic was automatically closed after 2299 days. New replies are no longer allowed.
