=== Valid Email Verification for Contact Form 7 ===
Contributors: mdsabir07
Donate link: https://profiles.wordpress.org/mdsabir07/
Tags: contact form 7, email verification, form security, prevent fake emails, duplicate email
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.2
Stable tag: 1.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds duplicate email blocking and verification to Contact Form 7 to improve form security and reduce spam.

== Description ==
**Valid Email Verification for Contact Form 7** is a lightweight plugin that ensures users submit valid and unique email addresses in Contact Form 7 forms.  

It helps prevent duplicate and fake email submissions, improving the quality of your form leads and reducing spam.

> This plugin is independently developed and is **not affiliated with or endorsed by** the Contact Form 7 team.

### Features
* Block duplicate email submissions in Contact Form 7
* Add a verification step to validate email addresses before processing
* Secure codebase (prepared statements, sanitization, escaping, caching)
* Lightweight, no external API required
* Fully compatible with the latest WordPress and Contact Form 7 versions

== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/valid-email-verification-cf7/` directory, or install it directly via the WordPress plugin installer.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. The plugin works automatically with your Contact Form 7 forms — no extra configuration needed.

== Frequently Asked Questions ==

= Does this plugin require Contact Form 7? =
Yes. This plugin is specifically built for Contact Form 7 and requires it to be installed and active.

= How does the email verification work? =
When a user submits a form, the plugin validates the email, checks it against stored submissions, and prevents the submission if the email was used before.

= Will the plugin delete stored emails on uninstall? =
Yes. If the user uninstalls the plugin (not just deactivates), the plugin removes its custom database table and options.

== Screenshots ==
1. Contact Form 7 showing the validation error when a duplicate email is submitted.
2. Example admin settings panel (if applicable).

== Assets ==
Place the following files in the plugin SVN **/assets/** directory (not in trunk):

Screenshots:
- screenshot-1.png (1200x900) — Duplicate email validation error
- screenshot-2.png (1200x900) — Settings/admin example (optional)

Banners:
- banner-772x250.png
- banner-1544x500.png

Icons:
- icon-128x128.png
- icon-256x256.png

== Changelog ==

= 1.0.1 =
* Fix: Properly block duplicate email submissions before sending mail.
* Fix: PHP 8.2 “dynamic property” notice resolved by declaring class properties.
* Fix: Database query now uses `$wpdb->get_var()` with `prepare()` for SELECT COUNT(*).
* Tweak: Improved sanitization, escaping, and code cleanup.

= 1.0 =
* Initial release.
* Added email verification for Contact Form 7.
* Implemented security improvements.

== Upgrade Notice ==

= 1.0.1 =
Fixes duplicate email blocking and PHP 8.2 compatibility. Update is strongly recommended.