过一个年回来WordPress的邮件联系表单的邮件爆满,哎!!!

原始表单代码

<div class="contact-form">
<p>[text* your-name placeholder "Your Name"] </p>

<p>[email* your-email placeholder "Your Email"] </p>

<p>[text* your-subject placeholder "Your Subject"] </p>

<p>[textarea your-message 65x10 placeholder "Fill in your message"] </p>

<p>[submit "Send"]</p>

</div>

1、form选项里面,把textarea后面加一个*号,然后保存

<div class="contact-form">
<p>[text* your-name placeholder "Your Name"] </p>

<p>[email* your-email placeholder "Your Email"] </p>

<p>[text* your-subject placeholder "Your Subject"] </p>

<p>[textarea* your-message 65x10 placeholder "Fill in your message"] </p>

<p>[submit "Send"]</p>

</div>

2、使用Contact form 7 的quiz功能来防止垃圾询盘(如果是中文表单,那就是“测验”功能)
在表单的FORM菜单里面,首先定位要放 QUIZ的位置,然后点击上面菜单中的quiz

<div class="contact-form">
<p>[text* your-name placeholder "Your Name"] </p>

<p>[email* your-email placeholder "Your Email"] </p>

<p>[text* your-subject placeholder "Your Subject"] </p>

<p>[textarea* your-message 65x10 placeholder "Fill in your message"] </p>

[quiz quiz-557 "1024-24=|1000"]
[quiz quiz-298 "The capital of Chinese?|Beijing"]
    
<p>[submit "Send"]</p>

</div>

标签: Contact form 7, 防垃圾邮件

添加新评论