Refactoring the sidebar.

This commit is contained in:
charlesgauthereau
2025-12-06 15:50:23 +01:00
parent 5cf6cf075e
commit 9458b12d69
23 changed files with 665 additions and 226 deletions
+5
View File
@@ -41,6 +41,10 @@ export const sendEmail = async (data: Payload) => {
throw new Error("SMTP system settings not found.");
}
const emailsArray = data.to.split(",")
.map(email => email.trim());
const transporter = nodemailer.createTransport({
pool: true,
host: settings.smtpHost ?? "",
@@ -54,6 +58,7 @@ export const sendEmail = async (data: Payload) => {
return await transporter.sendMail({
...data,
to: emailsArray,
from: settings.smtpFrom ?? undefined,
});
};