mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 09:00:35 +00:00
misc: added email formatting for remaining templates
This commit is contained in:
@@ -51,7 +51,7 @@ export const smtpServiceFactory = (cfg: TSmtpConfig) => {
|
||||
const appCfg = getConfig();
|
||||
const html = await fs.readFile(path.resolve(__dirname, "./templates/", template), "utf8");
|
||||
const temp = handlebars.compile(html);
|
||||
const htmlToSend = temp({ ...substitutions, isCloud: appCfg.isCloud });
|
||||
const htmlToSend = temp({ isCloud: appCfg.isCloud, siteUrl: appCfg.SITE_URL, ...substitutions });
|
||||
|
||||
if (isSmtpOn) {
|
||||
await smtp.sendMail({
|
||||
|
||||
Reference in New Issue
Block a user