Deze plugin is meer dan 2 jaar niet meer bijgewerkt. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Ajax Contact Form


This contact form plugin is used to create a simple contact form using Ajax technology and advanced email address validation. In difference to most other plugins, there is no form-builder included.

Check the features:

  • Advanced email address validation using the Mailgun API system (optional)
  • Using nonces for simple form value validation
  • Works with the default wp_mail() function (use it together with the Mailgun for WordPress plugin to send emails via SMTP)
  • Options for the email subject and the from/to email addresses
  • You can change/translate all text using a localization tool
  • The form HTML is compatible with the Bootstrap CSS framework
  • Optional: use the CSS style-sheet included by the plugin
  • Track successfully submitted forms in Google Analytics and/or Clicky
  • Uninstall function, we remove the plugin options on removal!

The plugin is built to keep stuff simple. If you need a complex web form or if you need a form builder, please use one of the existing form plugins. To use the email validation feature you need an API key. Open a free Mailgun account to get one.


  • An example how the form looks like.
  • Settings for the Ajax Contact form.


The quickest method for installing the contact form is:

  1. Automatically install using the built-in WordPress Plugin installer or…
  2. Upload the entire fws-ajax-contact-form folder to the /wp-content/plugins/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Add the shortcode [FWSAjaxContactForm] into the page of your choice.


Is it possible to use a different method for email address validation (instead of using the Mailgun API)

Yes, the external email address validation service is optional. My advice is to use them, because it’s very important to receive an email address that is correct. The Mailgun API system will test an email address for:

  • Syntax checks (RFC defined grammar)
  • DNS validation
  • Spell checks
  • Email Service Provider (ESP) specific local-part grammar (if available).
How to add a manual goal in Clicky?

If you use a Clicky premium plan it’s possible to track Goals.

  1. In Clicky click on Goals > Setup > Create a new goal.
  2. Enter a name for the goal
  3. Check the “Manual Goal” checkbox and click Submit
  4. Copy/paste the ID into the field from the plugin options page

Bijdragers & ontwikkelaars

“Ajax Contact Form” is open source software. De volgende personen hebben bijgedragen aan deze plugin.




  • Other

    • Replaced the link for the “Codestyling Localization” plugin. The plugin doesn’t exists anymore, I use “Loco Translate” now.
    • The plugin is tested for WordPress 4.2


    • Fixed some issues with the (Dutch) translation files
  • Enhancement

    • The contact form message is filtered now by using the function wp_kses() before the message is added to the email message


  • Other

    • Added .pot file for translations
  • Bugfixes

    • Removed the IF statement for the API key value inside the shortcode function. Since version 1.03 the API key isn’t required anymore.
    • Fixed a view option name values inside the function FWS_ajax_contactform_action_callback()
  • Enhancement

    • Added Dutch translations
    • Added a new option to change the “thank you message” (I keep the old text as fallback option)
    • Code optimizations (replaced standard PHP functions and code with native WordPress functions)
    • Added default options to plugin values (where possible)
    • New: Uninstall function – All plugin option are gone on removal


  • Other

    • Added updated screenshots
  • Bugfixes

    • The object name used for wp_localize_script is changed because of possible conflicts with other plugins or themes
  • Enhancement

    • The Mailgun email address validation feature is now optional. The validation process is also moved from client side code (JS) to the server side code (PHP).
    • Before the form gets submitted, a simple email address validation (regular expression) is done.
    • Now it’s possible to enter multiple subjects for the email message. These subjects are used to create a SELECT menu for the contact form
    • It’s possible now to translate the complete plugin

  • Other
    • Added icons for the plugin repository
    • The plugin is tested for WordPress 4.0
    • Added instructions for using the track Clicky goal feature
    • Added an updated screenshot for the plugin settings


  • Bugfixes

    • Removed some typos in the text
  • Enhancement

    • Simple goal or conversion tracking for Google Analytics and Clicky


  • Bugfixes

    • Fixed the name for the nonce verification
    • Removed the bug for the wrong addressing of the ajax call back function
  • Enhancement

    • Added some screenshots and FAQ’s
    • Overwrite the mail subject global setting by using a shortcode attribute


  • Initial release