Files
talk/plugins/talk-plugin-profile-data/server/connect.js
T
2018-04-09 16:07:05 -06:00

15 lines
323 B
JavaScript

const path = require('path');
module.exports = connectors => {
const { services: { Mailer } } = connectors;
// Setup the mail templates.
['txt', 'html'].forEach(format => {
Mailer.templates.register(
path.join(__dirname, 'emails', `download.${format}.ejs`),
'download',
format
);
});
};