fix(security): harden Contact Us PET notifications
This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user