# Update Digest Email Using Plugin

**URL:** <https://meta.discourse.org/t/update-digest-email-using-plugin/352135>\
**Category:** Product Support\
**Tags:** development\
**Created:** [February 13, 2025, 7:01pm UTC](https://meta.discourse.org/t/update-digest-email-using-plugin/352135 "2025-02-13T19:01:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Elizeo\_Rocha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elizeo_rocha/32/485602_2.png) [@Elizeo\_Rocha](https://meta.discourse.org/u/Elizeo_Rocha)\
**Post date:** [February 13, 2025, 7:01pm UTC](https://meta.discourse.org/t/update-digest-email-using-plugin/352135/1 "2025-02-13T19:01:19Z")

</div>

Hi everyone,

I’m looking to enhance our digest email by adding a new section—a box that displays a short list of jobs (each with a title and location) fetched from an external API.

**What I’m Trying to Do:**

- **Modify Existing Email Template:**  
I want to add a new box to our current digest email that will display job listings.
- **Plugin-Based Approach:**  
My idea is to create a plugin that retrieves job data from the API and inserts this information into the email template. I’ve seen that some areas of these emails can be edited via the UI, which led me to believe it might be possible to modify the underlying template files through a plugin.

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/d/a/3dac45bacea927ebbcfbd06dfbe45c9236b48ab8.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/0/5/0/0501c924526eece1fb96c7acb10670de923a11c8.png)

**The Challenge:**

I’m not able to access these template files from within the plugin. This brings up a couple of questions:

1. **Accessing Template Files:**  
Is it possible to access and modify these email template files using a plugin? If so, what’s the recommended approach?
2. **Alternative Solutions:**  
If accessing the files directly isn’t feasible, are there other methods or best practices for injecting custom data (like our job listings) into the digest email?

I appreciate any insights, experiences, or suggestions you might have regarding this approach. Thanks in advance for your help!

---

_[View the full topic](https://meta.discourse.org/t/update-digest-email-using-plugin/352135)._
