Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Jesin A

    (@jesin)

    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

    (@newbprogrammer)

    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

    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

    (@jesin)

    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/

    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

    (@jesin)

    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?

    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

    (@jesin)

    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.

    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

    (@jesin)

    Can you post your website’s URL for me to take a look?

    Jesin, do you have receive my email?

    Plugin Author Jesin A

    (@jesin)

    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.

    Okay, for example abc@hotmail.com, 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

    (@jesin)

    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 is valid according to Mailgun but abc@gmail.com isn’t

    More details can be found here: 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.