Allow site admin to specify email messages in settings.json#138
Draft
Copilot wants to merge 2 commits into
Draft
Allow site admin to specify email messages in settings.json#138Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/ether/ep_email_notifications/sessions/3361d490-f5c9-4e9e-b6dd-ebf17fc1d774 Co-authored-by: JohnMcLear <220864+JohnMcLear@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add functionality for site admin to specify email messages
Allow site admin to specify email messages in settings.json
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All email subjects and bodies sent by this plugin were hardcoded. Admins had no way to customise copy, add branding, or translate notification messages without patching source.
Changes
messageUtils.js(new) — sharedrenderTemplate(template, vars)that expands{key}placeholders; unknown keys are left unchangedupdate.js— readspluginSettings.messagesforfooter,beginSubject,beginBody,endSubject,endBodyhandleMessage.js— readspluginSettings.messagesforsubscribeSubject,subscribeBody,unsubscribeSubject,unsubscribeBodyREADME.md— documents themessagesblock, all keys, defaults, and placeholder reference tableAll fields are optional; omitting any key preserves the existing default. Existing deployments require no config changes.
Example
Available placeholders:
{padId}{padUrl}{footer}beginBody,endBody{confirmLink}subscribeBody,unsubscribeBody