# Plugin outlets for summary emails

**URL:** https://meta.discourse.org/t/plugin-outlets-for-summary-emails/103959
**Category:** Development
**Created:** [December 10, 2018, 11:36pm UTC](https://meta.discourse.org/t/plugin-outlets-for-summary-emails/103959 "2018-12-10T23:36:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 10, 2018, 11:36pm UTC](https://meta.discourse.org/t/plugin-outlets-for-summary-emails/103959/1 "2018-12-10T23:36:36Z")

</div>

With some frequency people want to add something to the Summary emails (e.g., [Need advertising added to the newsletter (Digest)](https://meta.discourse.org/t/need-advertising-added-to-the-newsletter-digest/102924), and I just did a project where someone wants some data from custom fields added to summary emails). There is currently no way to do that without overwriting the whole template. This is a huge bummer if and when the template changes.

To my naive way of thinking, it seems like the solution to this problem is that there be some stubs in `user_notifications.rb` like

```ruby
  def digest_text_after_logo (user, opts)
   ""
  end

```

with corresponding stuff in digest (e.g., `@after_logo = digest_text_after_logo`) and in the template (e.g., `@after_logo` after the logo before the following table).

I think the places to add stuff include

- in the header after the logo
- before “Popular topics”
- perhap before “New for you”
- before the footer/unsubscribe links.

All that to say

1. Do I understand correctly what would need to be done?
2. would this be a welcome PR?
3. Would someone who knows the answer to (1) like to submit the PR?

---

<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: [December 11, 2018, 4:42am UTC](https://meta.discourse.org/t/plugin-outlets-for-summary-emails/103959/2 "2018-12-11T04:42:15Z")

</div>

> [@pfaffman](#):
>
> There is currently no way to do that without overwriting the whole template. This is a huge bummer if and when the template changes.

Seriously? How often does that template change? This seems like a solution in search of a problem.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 11, 2018, 7:13pm UTC](https://meta.discourse.org/t/plugin-outlets-for-summary-emails/103959/3 "2018-12-11T19:13:20Z")

</div>

> [@codinghorror](#):
>
> Seriously? How often does that template change?

My guess is that it’ll start changing 3x/week immediately after I count on it not changing. 😉

[https://meta.discourse.org/t/discourse-activity-summary-emails-guide/36627/15?u=pfaffman](https://meta.discourse.org/t/discourse-activity-summary-emails-guide/36627/15)

But your point is well taken & I’ll proceed as if it’s not likely to change.

I do still wonder if the problem did exist if my solution is on the right track.
