This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Contact Form 7 Mail Conditions

Description

Note: Complex if statements are not yet supported. Please contact me if you need this.

Before the WP Contact Form 7 Plugin sents a mail this plugin becomes active. It looks for if-conditions written in shortcode-style and evaluates if the condition variable is empty or not. Depending on that the block between [if] and [/if] is inserted into the mail or not.

Example:

[if phone]Phone number: [phone][/if]

Installation

  1. Copy the contact-form-7-mail-conditionals into your plugins folder
  2. Activate the plugin

Reviews

Doesn't work. Warning given in server log

It doesn’t work with WP 4.3.1 and/or CF7 4.3.1.
[if][/if] is not parsed at all. Error log contains the following message after sending mail:
PHP Warning: Parameter 1 to Contact_Form_7_Mail_Conditions::before_send_mail() expected to be a reference, value given in /usr/local/***removed***/httpdocs/wp-includes/plugin.php on line 503

Read all 4 reviews

Contributors & Developers

“Contact Form 7 Mail Conditions” is open source software. The following people have contributed to this plugin.