aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/emailer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/emailer.ts')
-rw-r--r--server/lib/emailer.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 935c9e882..04aade83a 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -473,7 +473,7 @@ class Emailer {
473 }, 473 },
474 transport: this.transporter, 474 transport: this.transporter,
475 views: { 475 views: {
476 root: join(root(), 'server', 'lib', 'emails') 476 root: join(root(), 'dist', 'server', 'lib', 'emails')
477 }, 477 },
478 subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX 478 subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX
479 }) 479 })
@@ -498,8 +498,8 @@ class Emailer {
498 }, 498 },
499 options // overriden/new variables given for a specific template in the payload 499 options // overriden/new variables given for a specific template in the payload
500 ) as SendEmailOptions) 500 ) as SendEmailOptions)
501 .then(logger.info) 501 .then(res => logger.debug('Sent email.', { res }))
502 .catch(logger.error) 502 .catch(err => logger.error('Error in email sender.', { err }))
503 } 503 }
504 } 504 }
505 505