How to add custom X-TAGS header to digest emails for external email analytics (Netcore)?

No, this isn’t supported out of the box, aside from the email custom headers site setting which applies globally to all outgoing emails.

Yes, a custom plugin would the best approach here.

The current flow for digest emails, is as follows:

A plugin could hook into the message building process (Email::MessageBuilder) and inject(preferably via a modifier) your custom header conditionally, only for digests.

2 Likes