diff --git a/server/routes/api/settings.ts b/server/routes/api/settings.ts index 439b1db6..ebb1f1d0 100644 --- a/server/routes/api/settings.ts +++ b/server/routes/api/settings.ts @@ -315,12 +315,12 @@ settingsRoutes.route("/send_batch_email") } let admins = await User.find({ admin: true }); + subject = `[Admin FYI] ${subject}`; for (let user of admins) { let html: string = await renderEmailHTML(markdownContent, user); let text: string = await renderEmailText(html, user, true); - subject = `[Admin FYI] ${subject}`; text = `${filter.toString()}\n${text}`; - text = `${filter.toString()}
${text}`; + html = `${filter.toString()}
${text}`; emails.push({ from: config.email.from, to: user.email,