【问题标题】:Connecting a form to email via Contact Form 7 on Wordpress通过 Wordpress 上的 Contact Form 7 将表单连接到电子邮件
【发布时间】:2017-09-14 23:01:09
【问题描述】:

我的表单代码如下:

<center> 

<label for=".elementor-6 .elementor-element.elementor-element-5m0lukt .wpcf7 input[type="text"]"><input type=text text* your-name placeholder="name" required id:name </input></label>

<label for= ".wpcf7-form-control.wpcf7-text.wpcf7-tel.wpcf7-validates-as-required.wpcf7-validates-as-tel* your-email"> <input type="phone" tel* tel-196 input placeholder="phone" id:phone required</input></label>


<textarea name="details" placeholder="your message" cols="40" rows="10" class="wpcf7-form-control wpcf7-textarea details" id="details" aria-invalid="false"></textarea>

[submit "send"]
</center>

但我无法正确设置邮件标签以将其连接到电子邮件,因此我只收到空白邮件。填写表格时我会收到通知,但我没有从字段中看到任何详细信息。我知道这与邮件标签有关,但我不确定如何相应地更改以下内容:

From: your-name <[your-email]>
Subject: [your-subject]

Message Body:
[your-message]

有没有什么方法可以让它在不改变 HTML 代码的情况下工作,因为我有 CSS 代码来设计我的表单? 感谢这里的任何帮助,因为我完全迷路了,谢谢!

【问题讨论】:

    标签: html wordpress forms


    【解决方案1】:

    在消息正文下方,将 [your-message] 更改为 [details]

    【讨论】:

    • 剩下的字段呢?姓名和电子邮件?
    【解决方案2】:

    好的,上面的人让我尝试了几件事,我只是在其余字段中添加了一个“textarea name=”。我不知道这是否是最好的方法,但它让我看到了我收到的消息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-07-20
      • 1970-01-01
      • 2015-04-25
      • 1970-01-01
      • 2014-11-23
      • 2021-07-23
      • 2020-07-20
      • 1970-01-01
      相关资源
      最近更新 更多