This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

CF7 Mailgun Domain Validation


Do you use Mailgun to deliver emails from your WordPress site? Does it annoy you that email addresses using the Mailgun domain causes Contact Form 7 validation to fail?

This plugin allows email addresses using your site’s Mailgun domain to pass Contact Form 7’s form validation feature.

It also includes the cf7_mailgun_domain filter you can use to modify the default mailgun domain. Example:

 * Filter the Mailgun domain.
 * @param string $domain Your mailgun domain; defaults to the domain set in the Mailgun plugin settings, or '' if that is not set.
 * @return string Your mailgun domain.
function my_custom_mailgun_domain( $domain ) {
    $domain = ''; // Replace this with your Mailgun domain.
    return $domain;
add_filter( 'cf7_mailgun_domain', 'my_custom_mailgun_domain' );


  1. Install and activate the plugin
  2. Revalidate your Contact Form 7 forms.


There are no reviews for this plugin.

Contributors & Developers

“CF7 Mailgun Domain Validation” is open source software. The following people have contributed to this plugin.




  • Fix domain filter typo.


  • Get Mailgun domain from Mailgun plugin options if available.


  • First stable version