Convert all configurable emails to Mailables

Folks, I apologize in advance as I am NOT skilled in following all the github discussions.

Was this issue patched in a version previous to 3.4? Or is it only available in 3.4?

The issue being that the publish_notify email template was NOT being used when a new issue was published.

Thank you! radjr

Hi @radjr,

Yes this is for 3.4 You can tell this by the milestone that it is indicated on the Github issue page. If a fix that is for a given release is indicated it is indicated in the milestone area of the github issue - that is the way that you can tell what release you’d have to upgrade to in order to take advantage of the fix for the given issue.

-Roger
PKP Team

Thanks Roger. I am a bit lost. I was actually trying to determine if the fix to use the correct mail template was being updated in 3.4. What I now read is that PKP has completely retooled the mail subsystem. Is that correct? Mailables, etc?

My solution was to make the new issue email template and the notification template identical until a fix was made available. This seems to imply that 3.4 is going to torch all our old templates. Is that true?

Thank you!

Hi @radjr,

Thanks for elaborating. There is some explanation about the email changes here: https://docs.pkp.sfu.ca/dev/release-notebooks/en/3.4-release-notebook#email

However, I don’t think I can speak specifically to what you’re asking about. @asmecher - are you able to comment on this?

-Roger
PKP Team

Hi @radjr / @rcgillis,

The 3.3 to 3.4 upgrade should not destroy existing email templates. And as Roger stated, the Mailables stuff got added with 3.4.0, and won’t be back-ported to earlier branches.

Rich, could you explain the problem you were trying to solve that led you to the Mailables issue? I might be able to point you to something more specific.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

Thanks Alec.

I thought I mentioned it in the other email posting. We were stuck with the bug where the New Issue Email blast was NOT being sent but the New Notification email was sent in its place. To solve this we had to copy content from one to the other…but many new issue emails were sent before we caught the bug. Thanks!

Hi @radjr,

Do you mean that you moved the PUBLISH_NOTIFY email template contents into the NOTIFICATION email template? I don’t recommend that – the NOTIFICATION template is used for many purposes, and the “new issue published” notification is just one of them.

Instead, you might have a look at this plugin:

It should be included in the Plugin Gallery, and there will be called “Email Issue Table of Contents”.

This will be integrated in OJS starting with 3.5.0, when that is released. (See this issue.)

Regards,
Alec Smecher
Public Knowledge Project Team