feat: admin mail - send test email

This commit is contained in:
Nick
2019-06-08 00:07:30 -04:00
parent 17f9f0baa9
commit 40d224e8c0
9 changed files with 405 additions and 32 deletions

View File

@@ -44,7 +44,7 @@ module.exports = {
async send(opts) {
if (!this.transport) {
WIKI.logger.warn('Cannot send email because mail is not setup in the administration area!')
throw new WIKI.Error.MailNotSetup()
throw new WIKI.Error.MailNotConfigured()
}
await this.loadTemplate(opts.template)
return this.transport.sendMail({