ability to select what kind of test email to send

This commit is contained in:
psychobunny
2015-09-21 17:17:23 -04:00
parent fa8a2c5c1b
commit 55748ac3f5
4 changed files with 53 additions and 7 deletions

View File

@@ -203,7 +203,7 @@ SocketAdmin.settings.clearSitemapCache = function(socket, data, callback) {
SocketAdmin.email.test = function(socket, data, callback) {
if (plugins.hasListeners('action:email.send')) {
emailer.send('test', socket.uid, {
emailer.send(data.template, socket.uid, {
subject: '[NodeBB] Test Email',
site_title: meta.config.title || 'NodeBB'
});