Welcome email template doesn't append the email footer that has unsubscribe button. Digest email template are working fine with email footer. Does anyone face the same issue?
Include additional data in digest emails
I'm looking to expand the contents of the digest emails to include details of topics that have also been closed and possibly updated during the time period. Has anyone done this before?
I plan to write a plugin that will do the necessary but I'm not sure there are any existing hooks that will allow me to do this.
Can anyone advise here?
A combination of overriding the template and
filter:email.paramsshould work for you.
@alanbrown you can refer to this topic - "Email Template To Include New Contents - How?" that will give you what you may need
@pitaj I've looked at using this hook and i can successfully replace the data here by querying the db and getting new data and overriding the template like you say. The only issue I have is there is no way to tell at this point which digest is being created so i don't know whether to query for daily, weekly or monthly data.
Is it possible to find out the digest term at this point? Or is there another hook earlier in the process where this is available and I can do my replacements?
is the scheduling done inside Nodebb or Cron jobs?
@julian I'm using this hook: filter:email.params. As far as I can tell this is the first place that allows me to replace the data prior to the email being sent.
@alanbrown it has to be one of the existing params. Looks like it's the