Merged in feature/IO-3386-carfax-rps (pull request #2610)

IO-3386 Cleanup To extension

Approved-by: Dave Richer
This commit is contained in:
Allan Carr
2025-10-07 16:16:15 +00:00
committed by Dave Richer

View File

@@ -47,11 +47,6 @@ const logEmail = async (req, email) => {
const sendServerEmail = async ({ subject, text, to = [] }) => {
if (process.env.NODE_ENV === undefined) return;
let sentTo = ["support@imexsystems.ca"];
if (to?.length) {
sentTo = [...sentTo, ...to];
}
try {
mailer.sendMail(
{
@@ -59,7 +54,7 @@ const sendServerEmail = async ({ subject, text, to = [] }) => {
imex: `ImEX Online API - ${process.env.NODE_ENV} <noreply@imex.online>`,
rome: `Rome Online API - ${process.env.NODE_ENV} <noreply@romeonline.io>`
}),
to: sentTo,
to: ["support@imexsystems.ca", ...to],
subject: subject,
text: text,
ses: {