Merge branch 'main' into feat/storage

This commit is contained in:
charlesgauthereau
2026-01-16 22:53:33 +01:00
5 changed files with 12 additions and 5 deletions
+5
View File
@@ -41,6 +41,11 @@ export const sendEmail = async (data: Payload) => {
throw new Error("SMTP system settings not found.");
}
if (!settings.smtpHost || !settings.smtpPort || !settings.smtpUser || !settings.smtpPassword || !settings.smtpFrom) {
console.warn("Incomplete SMTP settings. Email not sent.");
return;
}
const emailsArray = data.to.split(",")
.map(email => email.trim());