Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10354

    Contact form is rejecting valid email addresses. How do I to disable those rejection parameters? Please provide the custom CSS code, thanks.

    #67776

    Hi,

    Could you clarify how it is rejecting a valid email address? Do you have an example?

    I’m assuming you mean it doesn’t allow certain users to send a mail when they’ve filled in the email address with a correct address.

    It seems to work fine for me.

    Cheers,

    Chris

    #67777

    Yes it rejected (Email address hidden if logged out)

    Perhaps the address needs to be a certain length of characters? Please verify short emails addresses. What are the rejection parameters?

    #67778

    you can modify the regex in js/avia.js line 1088 that checks for a valid email from


    if(!value.match(/^w[w|.|-]+@w[w|.|-]+.[a-zA-Z]{2,4}$/))

    to


    if(!value.match(/^w[w|.|-]+@w[w|.|-]*.[a-zA-Z]{2,4}$/))

    then open framework/php/class-form-generator.php and at the bottom of the file change:


    if(preg_match("!^w[w|.|-]+@w[w|.|-]+.[a-zA-Z]{2,4}$!", urldecode($_POST[$id]))) return "valid";

    to


    if(preg_match("!^w[w|.|-]+@w[w|.|-]*.[a-zA-Z]{2,4}$!", urldecode($_POST[$id]))) return "valid";

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Contact form is rejecting valid email addresses How to disable those parameters?’ is closed to new replies.