feat: wire contact form to Formsubmit.co → khondokartowsif171@gmail.com
Replace non-existent n8n webhook with Formsubmit AJAX endpoint. Zero backend required — first submission triggers Gmail verification, after that all inquiries arrive as formatted table emails. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -141,15 +141,26 @@ const Contact = ({ lang = "en" }) => {
|
|||||||
if (Object.keys(e).length) return;
|
if (Object.keys(e).length) return;
|
||||||
setStatus("sending");
|
setStatus("sending");
|
||||||
try {
|
try {
|
||||||
await fetch("https://n8n.auraajenticai.cloud/webhook/contact", {
|
const resp = await fetch("https://formsubmit.co/ajax/khondokartowsif171@gmail.com", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json", "Accept": "application/json" },
|
||||||
body: JSON.stringify(form),
|
body: JSON.stringify({
|
||||||
|
_subject: `New Aura Inquiry — ${form.service}`,
|
||||||
|
_captcha: "false",
|
||||||
|
_template: "table",
|
||||||
|
name: form.name,
|
||||||
|
email: form.email,
|
||||||
|
service: form.service,
|
||||||
|
budget: form.budget || "Not specified",
|
||||||
|
message: form.message,
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
const data = await resp.json();
|
||||||
|
if (!data.success) throw new Error("failed");
|
||||||
setStatus("sent");
|
setStatus("sent");
|
||||||
} catch {
|
} catch {
|
||||||
setStatus("idle");
|
setStatus("idle");
|
||||||
setErrors({ message: "Network error — please email us directly." });
|
setErrors({ message: "Network error — please email us directly at hello@auraajenticai.cloud" });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user