Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate spam summary emails #18

Closed
3 tasks done
zackkatz opened this issue Mar 10, 2023 · 1 comment
Closed
3 tasks done

Generate spam summary emails #18

zackkatz opened this issue Mar 10, 2023 · 1 comment
Assignees

Comments

@zackkatz
Copy link
Member

zackkatz commented Mar 10, 2023

This is the most-requested feature for the plugin.


Settings page

  • Create a Gravity Forms global settings tab for Gravity Forms Zero Spam

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

  • Create a cron based on the settings

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

Generate email

  • Generate an email template

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
Copy link
Member Author

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

@omarkasem omarkasem linked a pull request Mar 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants