Add condition in contact form mail tab

In the Contact Form 7 plugin, you can add conditions to the Mail tab to customize the email sending process. Here are the steps:

  1. Go to the Contact Form 7 plugin settings page and click on the "Mail" tab.
  2. Click on the "Add Rule" button.
  3. In the "Condition" dropdown menu, select the condition you want to add (e.g. "Is equal to", "Is not equal to", "Is checked", etc.).
  4. In the "Value" field, enter the value you want to check against (e.g. a specific text, a checkbox value, etc.).
  5. In the "Then" dropdown menu, select the action you want to take if the condition is true (e.g. "Send email", "Do not send email", etc.).
  6. Click "Add Rule" to save the condition.

Here are some examples of conditions you can add:

You can add multiple conditions by clicking the "Add Rule" button again. The conditions will be evaluated in the order they are added, and the email will be sent only if all conditions are true.

For example, you can add two conditions:

By adding conditions to the Mail tab, you can customize the email sending process and ensure that the email is sent only when the form is submitted with the desired information.