Context
We rely on editorial Discussions to keep all communication and files tracked at the submission level, including tasks delegated to collaborators. Being able to see every discussion attached to an article is essential for monitoring progress across many journals.
Issue
Since moving from 3.3 to 3.5, discussion notification emails have two problems that push authors to reply by email instead of using the system (breaking our tracking):
- Sender not identifiable. With
force_dmarc_compliant_fromenabled (required for our DMARC setup), theFromis rewritten to the genericdefault_envelope_sender. Ifdmarc_compliant_from_displaynameis empty, the recipient sees only a generic address with no name. In 3.3 the sender (and journal) were visible. - The “reply in the system” notice is weak and only at the bottom. It comes from the locale string
emails.footer.unsubscribe.discussion, whichMailable::buildView()always appends at the end of the body. In longer messages it goes unnoticed, so authors reply by email instead.
See the screenshot below: the “From” field shows only a generic editorial@... address with no sender name, and the “Reply to this comment” notice is a small line at the very bottom, easy to miss.
(screenshot attached)
What we tried
- Setting
dmarc_compliant_from_displayname = '%n via %s'restores a sender name (note:%sis the site title, not the journal/context name). - We can restyle the footer text (e.g. a highlighted box) via the Custom Locale plugin, but it stays at the bottom — there seems to be no supported way to move it above the message body, since these emails are Mailable classes with the body set programmatically (
->body($note->contents)), not editable templates.
Questions
- Is there a supported way to show the discussion sender’s name in these emails by default (e.g.
{$senderName})? - Would the team consider making the “reply in system” notice more prominent/placeable above the body, or exposing it as an editable email template?
- Is a hook (e.g.
Mailable::build) the intended extension point for customizing discussion email bodies, or is there a better one?
Thanks in advance.
What application are you using?
For example, OJS 3.5.0-5
