You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

网站FormSubmit提交表单后收到空白邮件问题求助

FormSubmit表单提交后邮件无内容的解决方案

核心问题是表单设置了enctype="text/plain",FormSubmit无法解析这种格式的表单数据,导致邮件里拿不到姓名、邮箱等字段值。

修复方法:

直接删除表单标签中的enctype="text/plain"属性,表单会自动使用默认的application/x-www-form-urlencoded编码格式,这是FormSubmit支持的标准格式。

修改后的完整表单代码:

<div class="right-contact">
  <form action="https://formsubmit.co/[myemail]@gmail.com" method="POST" class="contact-form">
    <div class="input-control i-c-2">
       <input type="text" name="name" required placeholder="Your Name">
       <input type="email" name="email" required placeholder="Your Email">
    </div>
    <div class="input-control">
      <input type="text" name="Subject" required placeholder="Subject...">
     </div>
     <div class="input-control">
     <textarea name="Description" id="" cols="15" rows="8" placeholder="Description..."></textarea>
     </div>
     <div class="container-submit-download">
     <div class="submit-btn">
       <button class="main-btn send-email-btn" type="submit">
        <span class="btn-text">Submit</span>
        <span class="btn-icon">
        <i class="fa-solid fa-paper-plane"></i>
        </span>
       </button>
     </div>
</div>

关于你的JavaScript代码:

你的JS代码仅负责页面切换和主题切换功能,没有涉及表单数据的修改或清空操作,因此无需调整这部分代码。


内容的提问来源于stack exchange,提问作者Emlf9

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 11:21:08