Skip to main content

Check What Happens After Each Contact Form 7 Form Is Sent with AI

A read-only check of every Contact Form 7 form: who gets emailed, whether entries are kept and where visitors land.

Difficulty Beginner
Time ~10 min

Prerequisites

A site connected to WPVibe running Contact Form 7 and the free Redirection for Contact Form 7 plugin, 3.2.17 or newer (tested on 3.2.17 with Contact Form 7 6.2.5), on WordPress 6.9 or newer, with an administrator account.

The prompt
My site uses Contact Form 7 and Redirection for Contact Form 7. Check what happens after each of my forms is sent. Read only: change nothing.

1. Run discover_abilities with category cf7-actions. If it finds nothing, stop and tell me to install or update the free Redirection for Contact Form 7 plugin (3.2.17 or newer) alongside Contact Form 7, on WordPress 6.9 or newer.
2. Run rest_api GET /contact-form-7/v1/contact-forms for every form's id and title. For each form, run rest_api GET /contact-form-7/v1/contact-forms/FORM_ID and note, from properties: mail.recipient, whether mail_2.active is true and its recipient, and additional_settings.content. A recipient written as the _site_admin_email tag is the address in rest_api GET /wp/v2/settings (email); look it up once. Then run cf7-actions/list-actions with form_id FORM_ID.
3. For each form work out, in order of the actions list (actions with status off do nothing):
- Email: if an action of type SendMail is on, Contact Form 7's own Mail and Mail (2) are not sent for that submission (the action turns them off once it runs), so the emails that go out are the Send Email actions' only: list each one's send_to_emails_values, send_to_emails_values_cc and send_to_emails_values_bcc. A Send Email action whose send_to_emails_values is empty sends to mail.recipient, with the Mail tab's subject and body where its own are empty. Otherwise the emails are Mail to mail.recipient, plus Mail (2) if active. If additional_settings.content sets skip_mail or demo_mode to on, true or 1, Contact Form 7 sends no email of its own (Send Email actions still send). Flag any form where no email reaches the site owner or team, and say that a recipient written as a form tag, such as the your-email tag, is the visitor's own address.
- Entries: whether an action of type save_lead is on. If not, a submission whose email fails is lost, unless another plugin, such as Flamingo, stores submissions (check rest_api GET /wp/v2/plugins with status active once).
- Redirect: for an action of type redirect that is on, if use_external_url is on and external_url is filled, give the external_url. Otherwise the page_id is used: if it is empty, flag that the redirect goes nowhere; otherwise run rest_api GET /wp/v2/pages/PAGE_ID with the page_id (or /wp/v2/posts/PAGE_ID if that says not found) and check its status is publish. A draft, private or trashed page is broken: visitors land on a page they can't open. A page that no longer exists means no redirect happens at all. Flag more than one redirect on the same form. If http_build_query or http_build_query_selectively is on, or external_url holds form tags in square brackets, flag that the form's answers, names and emails included, are sent along to that page, where analytics tools and server logs record them. If open_in_new_tab is on, flag that browsers often block the new tab, so visitors may stay on the form.
- Spam: whether an action of type honeypot is on.
- Scripts: an action of type FireScript that is on runs its script in the visitor's browser after each submission. Show me the script and flag any I don't recognise; the plugin offers this action only on older sites it marks as legacy.
- Any other action type that is on (such as erasedatarequest, or a paid add-on's): name it and say what it does.
- Actions with status off: list them, so I can decide whether they are still wanted.
4. Give me one row per form: form, emails go to, entries kept, visitors land on, spam trap, problems. Then the problems in order of harm: broken redirects and forms that notify nobody first, then forms that don't keep entries, then the rest. For each, say where to fix it: Contact Form 7's Mail tab for its emails, and the form's Actions tab (added by Redirection for Contact Form 7) for actions.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Check What Happens After Each Contact Form 7 Form Is Sent with AI” recipe from the WPVibe cookbook on my connected site.

Every Contact Form 7 form on your site does something after it is sent: an email, a saved entry, a redirect. Over the years forms get copied, pages get deleted and actions get switched off, and nobody checks. A form that sends people to a page that was trashed or unpublished, or whose notification email quietly stopped, looks fine from the outside.

The AI reads every form’s settings and its Redirection for Contact Form 7 actions and reports what each one really does when someone presses send: who gets an email, whether the entry is kept, where the visitor goes. It flags what is broken or risky and changes nothing.

One finding surprises people: when a Send Email action runs, Contact Form 7’s own emails from its Mail tab are not sent for that submission, so the action has to send to you too. The report says where to fix each thing. To keep entries, use this recipe; to fix a thank-you page, this one.

Outcome

A per-form report of what happens on submit, with broken redirects, missing notifications and unsaved forms flagged, and nothing changed.