In the workflow settings, there is the option to edit the email header. The default entry is "The following message is being delivered on behalf of . ". So I guess it’s intended to add a name there.
However, the people do change. Is there a variable I can add to the header that adds the current user?
I would like to enter something like “This mail is send to you on behalf of {$username}.” into the setup field, but the variable is not resolved. That’s why I currently add this variable to MailTemplate.inc.php.
Ah, I see. That field is supposed to identify the journal, not the user who’s sending the email; this was introduced because of SPF (Sender Protection Framework) rules that mail servers are increasingly implementing, forcing us to set the “From” address to the journal contact. In order to prevent impersonations (in which someone abused the fact that the From address appeared to be someone else), the message header field should note that the message is being sent on behalf of the journal, but may be written by someone else. It’s intended to be something like a disclaimer.
Regards,
Alec Smecher
Public Knowledge Project Team