mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 03:05:24 +08:00
15 lines
323 B
JavaScript
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
|
|
);
|
|
});
|
|
};
|