fix(security): harden Contact Us PET notifications

This commit is contained in:
2026-11-09 13:41:31 +00:00
parent 3c0a9ef721
commit f4f8075af3
6 changed files with 740 additions and 47 deletions
+21
View File
@@ -46,3 +46,24 @@ export const sendContactUsConfirmation = async (formValues, language) => {
throw error;
}
};
export const sendContactUsPETNotification = async (formValues, petEmail) => {
const mailData = {
"petEmail": petEmail,
"contactEmail": formValues.contactEmail,
"contactSubject": formValues.contactSubject,
"contactbody": formValues.contactbody,
"typeOfContact": formValues.typeOfContact
};
try {
return await requestJson({
method: "post",
url: "/api/email/contactus-pet-notification",
data: mailData
});
} catch (error) {
consoleLogger(error);
throw error;
}
};