fix(security): harden Contact Us sender confirmations

This commit is contained in:
2026-11-09 13:06:22 +00:00
parent b821dc2092
commit 3c0a9ef721
7 changed files with 811 additions and 17 deletions
+21
View File
@@ -25,3 +25,24 @@ export const sendEmail = async (
throw error;
}
};
export const sendContactUsConfirmation = async (formValues, language) => {
const mailData = {
"contactEmail": formValues.contactEmail,
"contactSubject": formValues.contactSubject,
"contactbody": formValues.contactbody,
"typeOfContact": formValues.typeOfContact,
"language": language
};
try {
return await requestJson({
method: "post",
url: "/api/email/contactus-confirmation",
data: mailData
});
} catch (error) {
consoleLogger(error);
throw error;
}
};