Newsletter Sign-Up
[resolved] Invalid email address allowed (3 posts)

  1. hixmyrick
    Posted 2 years ago #

    Love the plugin. It is working great except that I am able to successfully submit the following invalid email address:


    I tested this format with WP's is_email() and it was rejected.

    Other invalid addresses like name@domain and nameonly redirect to the error page.

    WP 3.5.1, NSU 1.7.9



  2. hixmyrick
    Posted 2 years ago #

    A little more information. In NewsletterSignUp.php, I see the is_email() test is for "nsu-email".

    In the Chrome developer tool, I found that the email field id was "nsu-email-1". I changed it in the tool to "nsu-email" and the bad email address was caught.

    The question now is why the email field id is "nsu-email-1".

  3. hixmyrick
    Posted 2 years ago #

    I see in NewsletterSignUp.php that the form number is appended to the email field's id, so my question about this is answered.

    One last comment. If I remove the redirect URL hidden form value and submit the bad address


    it is caught by iContact I'm taken to the standard iContact error page. It appears that iContact's error pages take over from the standard error messages.

    So the problem is using custom redirect error pages with iContact, and I don't think this is a problem with the plugin.

    Marking as resolved. Moving on ...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Newsletter Sign-Up
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic