GravityKit / gravity-forms-zero-spam

Enhance your Gravity Forms to include anti-spam measures without needing to use a CAPTCHA.
https://wordpress.org/plugins/gravity-forms-zero-spam/
GNU General Public License v2.0
4 stars 3 forks source link

Generate spam summary emails #18

Closed zackkatz closed 11 months ago

zackkatz commented 1 year ago

This is the most-requested feature for the plugin.


Settings page

The page should have three settings:

  1. How frequently should spam report emails be sent? Daily, Weekly, Monthly, or Spam Entry Limit
  2. If Spam Entry Limit is selected, show a number field, minimum 1. with the description "A spam report email will be sent when the number of spam messages reaches this number."
  3. "Send spam report to:" email input type. The default address should be set to the site administrator.

Create a cron

The cron should create the email report and send it to the email defined in the setting.

Generate email

The email should be filterable for the subject line and content template. Variables should be replaced with live data.

Message subject:

Your Gravity Forms spam report for {{site_name}}

Message body:

<h2>Spam report</h2>

You have received {{total_spam_count}} spam emails across the following forms:

{{spam_report_list}}

To turn off this message, visit {{settings_url}}.

{{spam_report_list}} should be a <ul> list of forms that have spam messages, in the following format (assume repeating <li>s:

<ul>
<li><a href="{{form_spam_entries_url}}">{{form_name}} {{spam_count}}</a></li>
</ul>
zackkatz commented 1 year ago

@omarkasem Hey, can you please work on this after the other items?