-
+ emailjs
+ .send(
+ import.meta.env.VITE_APP_EMAILJS_SERVICE_ID,
+ import.meta.env.VITE_APP_EMAILJS_TEMPLATE_ID,
+ {
+ from_name: form.name,
+ to_name: "JavaScript Mastery",
+ from_email: form.email,
+ to_email: "sujata@jsmastery.pro",
+ message: form.message,
+ },
+ import.meta.env.VITE_APP_EMAILJS_PUBLIC_KEY
+ )
+ .then(
+ () => {
+ setLoading(false);
+ alert("Thank you. I will get back to you as soon as possible.");
-
-