coursePanel dropdown, 6 emails per subject

This commit is contained in:
amNobodyyy
2025-03-07 02:09:15 +05:30
parent 4a3154752f
commit d8fe5fcc42
8 changed files with 638 additions and 430 deletions

View File

@@ -151,9 +151,9 @@ export const updateCourseStatus = async (courseId) => {
});
};
export const sendEmail = async (formData) => {
export const sendEmail = async (formData, type) => {
try {
const url = `${BASE_URL}/send-email`;
const url = `${BASE_URL}/send-email/${type}`;
const response = await fetch(url, {
method: "POST",
body: formData, // Directly pass FormData