Values to add to email templates
Unsolved
Technical Support
-
@mattdjuk You can do a search for the string
emailer.send(
insrc/
to see every invocation of the emailer.From the first argument passed in, you can see which template it attempts to use, and the third argument shows the template data passed in.
e.g.
await emailer.send('notification', uid, { path: notification.path, notification_url: notification.path.startsWith('http') ? notification.path : nconf.get('url') + notification.path, subject: utils.stripHTMLTags(notification.subject || '[[notifications:new_notification]]'), intro: utils.stripHTMLTags(notification.bodyShort), body: body, notification: notification, showUnsubscribe: true, })
Copyright © 2024 NodeBB | Contributors