added white lable name

This commit is contained in:
2021-03-23 00:36:53 -04:00
parent 96a97c1d6d
commit 0e212c48cc
5 changed files with 16 additions and 14 deletions
+2 -1
View File
@@ -11,7 +11,7 @@ var Mail = {};
Mail.send = async function(to, subject, message, from){
await sgMail.send({
to: to,
from: from || 'Theta 42 Accounts <accounts@no-reply.theta42.com>',
from: from || `${conf.name} Accounts <accounts@no-reply.theta42.com>`,
subject: subject,
text: message,
html: message,
@@ -20,6 +20,7 @@ Mail.send = async function(to, subject, message, from){
Mail.sendTemplate = async function(to, template, context, from){
context.name = conf.name;
template = require(`../views/email_templates/${template}`);
await Mail.send(
to,