// Get the email input field value from the form
var email = document.getElementById("email").value;
// Define the reminder message
var reminderMessage = "This is a reminder message.";
// Send the reminder email using FormSubmit API
fetch("https://formsubmit.co/9eb5fc640f95e812022d27e4d20eabf2", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
email: email,
subject:Thank you for your application,
message: reminderMessage,
}),
})
.then(function (response) {
if (response.status === 200) {
console.log("Reminder email sent successfully");
} else {
console.error("Error sending reminder email");
}
})
.catch(function (error) {
console.error("Error sending reminder email: " + error.message);
});