fetch の問い合わせフォーム
これを fetch に貼ってください。送信先は Formgong です。データベースも Resend も要りません。
AIリード判定はどのプランでも無料で、月100件までです。フォームでオンにしてください。ホットリードとスパムの可能性は Telegram、メール、受信箱に出ます。
async function onSubmit(event) {
event.preventDefault();
const fields = Object.fromEntries(new FormData(event.currentTarget));
const response = await fetch("https://formgong.com/submit", {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
},
body: JSON.stringify({ ...fields, access_key: "fk_your_access_key" }),
});
const result = await response.json();
if (!result.success) throw new Error(result.message || "Formgong error");
}