Skip to content

feat: add email threading and branded templates#8

Merged
mpge merged 1 commit into
mainfrom
feat/email-threading
Apr 8, 2026
Merged

feat: add email threading and branded templates#8
mpge merged 1 commit into
mainfrom
feat/email-threading

Conversation

@mpge

@mpge mpge commented Apr 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Add Email_Threading class that hooks into wp_mail to inject Message-ID, In-Reply-To, and References headers for proper email client threading
  • Add Branded_Email_Template class for rendering HTML emails with configurable logo, accent color, footer text, and company name
  • Branding settings stored in escalated_settings table via the Setting model
  • Registered in the plugin bootstrap via class-escalated.php

Test plan

  • Verify Message-ID generation for tickets and replies
  • Verify In-Reply-To and References headers are added for reply emails
  • Verify headers are not added when no ticket context exists
  • Verify context resets after email is sent
  • Verify branded template renders with logo, accent color, footer, and company name
  • Verify invalid accent color falls back to default
  • Verify branding settings can be stored and retrieved

Add Email_Threading class that hooks into wp_mail to inject Message-ID,
In-Reply-To, and References headers for proper email client threading.
Add Branded_Email_Template class for rendering HTML emails with
configurable logo, accent color, footer text, and company name stored
in wp_options via the Setting model. Includes PHPUnit tests covering
header generation, template rendering, and settings management.
@mpge
mpge merged commit eb965eb into main Apr 8, 2026
3 checks passed
@mpge
mpge deleted the feat/email-threading branch April 8, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant