Title: Using plugin code on non-wordpress site?
Last modified: August 21, 2016

---

# Using plugin code on non-wordpress site?

 *  [newbprogrammer](https://wordpress.org/support/users/newbprogrammer/)
 * (@newbprogrammer)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/)
 * Hi Jesin,
 * I’ve been trying to get the Mailgun jQuery validation plugin to work with my 
   form for a few days without full success. I’ve been able to get it partially 
   working.
 * I was wondering if I could port your plugin over to use on a non-wordpress site.
   How would I hook it into my form?
 * Thanks!
 * [https://wordpress.org/plugins/mailgun-email-validator/](https://wordpress.org/plugins/mailgun-email-validator/)

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Plugin Author [Jesin A](https://wordpress.org/support/users/jesin/)
 * (@jesin)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891236)
 * Hi newbprogrammer,
 * Can you get the code of the form. It can be done either on the frontend (with
   jQuery/Javascript) or on the backend (PHP).
 *  Thread Starter [newbprogrammer](https://wordpress.org/support/users/newbprogrammer/)
 * (@newbprogrammer)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891283)
 * Hi Jesin,
 * Thanks for the quick response!
 * I’ve been trying to get the Mailgun jQuery validator to work.
 * Here’s the code I have so far: [http://codeshare.io/zbwCi](http://codeshare.io/zbwCi)
 * It works fine accept that it doesn’t allow me to press the Enter key from within
   the email field. (I’d want it to first validate, and then automatically submit
   the form if valid). Also, when I click the submit button, it validates, but doesn’t
   submit. I have to click a second time to get it to submit. If the email is valid,
   I’d like it to submit automatically on a click of the signup button.
 * Hope that makes sense. Been struggling with this for a couple days now.
 *  Plugin Author [Jesin A](https://wordpress.org/support/users/jesin/)
 * (@jesin)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891445)
 * If the address is valid why display a note, just go ahead and submit the form.
 * On **line 76** replace
 * `return '<span class="success">Address is valid.</span>';`
 * with
 * `$('#icpsignup').submit();`
 * Have a look at the modified code – [http://jsfiddle.net/6MnAf/](http://jsfiddle.net/6MnAf/)
 *  [AlexanderWinson](https://wordpress.org/support/users/alexanderwinson/)
 * (@alexanderwinson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891646)
 * Hi Jesin,
 * I am new to using wordpress, can i have a video clip to show how does this mailgun
   work on contact form?
 *  Plugin Author [Jesin A](https://wordpress.org/support/users/jesin/)
 * (@jesin)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891647)
 * Hi Alexander,
 * Install this plugin and enter Mailgun’s public API key. This is enough for the
   plugin to work.
 * What contact form plugin are you using?
 *  [AlexanderWinson](https://wordpress.org/support/users/alexanderwinson/)
 * (@alexanderwinson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891648)
 * Is contact-form-7.
    Ya, I already installed and enter the public API key. So 
   what is the next I need to do?
 *  Plugin Author [Jesin A](https://wordpress.org/support/users/jesin/)
 * (@jesin)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891649)
 * Then it must already be working. Try filling up the contact form with an email
   like user @ example.com or abc @ gmail.com (remove the spaces). You should get
   a “invalid email” error.
 *  [AlexanderWinson](https://wordpress.org/support/users/alexanderwinson/)
 * (@alexanderwinson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891650)
 * This is my contact-form-7
 * <p color: Black;>
    [text* fullname 5/20 id:fullname akismet:author placeholder“
   Full Name”] [text* companyname 5/20 id:companyname akismet:author placeholder“
   Company Name”] [text* jobtitle 5/20 id:jobtitle akismet:author placeholder “Job
   Title”] [email* email1 5/50 placeholder “Email”] [text* contactnumber 5/20 id:
   contactnumber akismet:author placeholder “Contact Number”] [select* menu-324 “
   General Enquiries” “Data Protection” “Partnership” “Sales & Marketing” “Others”][
   textarea* msg /500 placeholder “Message”] [submit “Submit”]
 * </p>
 * Still cant bro, is there need to add some coding inside the contact-form-7 for
   mailgun API?
 *  Plugin Author [Jesin A](https://wordpress.org/support/users/jesin/)
 * (@jesin)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891651)
 * Can you post your website’s URL for me to take a look?
 *  [AlexanderWinson](https://wordpress.org/support/users/alexanderwinson/)
 * (@alexanderwinson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891652)
 * Jesin, do you have receive my email?
 *  Plugin Author [Jesin A](https://wordpress.org/support/users/jesin/)
 * (@jesin)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891653)
 * I tried filling up your contact form with invalid email addresses and I got the
   following validation error:
 * > Email address seems invalid.
 * So the plugin is working.
 *  [AlexanderWinson](https://wordpress.org/support/users/alexanderwinson/)
 * (@alexanderwinson)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891654)
 * Okay, for example [abc@hotmail.com](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/abc@hotmail.com?output_format=md),
   does this mailgun plugin also include to validate the email ‘abc’? because what
   I tried was its only validate after @ symbol. Is that correct?
 *  Plugin Author [Jesin A](https://wordpress.org/support/users/jesin/)
 * (@jesin)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891655)
 * The Mailgun API service **does NOT check if a user exists or not**.
 * It checks the following:
    - Existence of the domain name.
    - Existence of MX (Mail eXchanger) for the domain name.
    - Email provider grammar, eg, Gmail requires a minimum of 6 characters in the
      username, Yahoo allows only one dot in the username.
 * So [abc@hotmail.com](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/abc@hotmail.com?output_format=md)
   is valid according to Mailgun but [abc@gmail.com](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/abc@gmail.com?output_format=md)
   isn’t
 * More details can be found here: [http://blog.mailgun.com/free-email-validation-api-for-web-forms/](http://blog.mailgun.com/free-email-validation-api-for-web-forms/)

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Using plugin code on non-wordpress site?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mailgun-email-validator_777777.svg)
 * [Mailgun Email Validator](https://wordpress.org/plugins/mailgun-email-validator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailgun-email-validator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailgun-email-validator/)
 * [Active Topics](https://wordpress.org/support/plugin/mailgun-email-validator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailgun-email-validator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailgun-email-validator/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 13 replies
 * 3 participants
 * Last reply from: [Jesin A](https://wordpress.org/support/users/jesin/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/using-plugin-code-on-non-wordpress-site/#post-4891655)
 * Status: not resolved