Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Texas, USA
    Plugin Contributions

    Default [Done v1.5.0] Two .. in email address [email protected] bad errors

    If the customer enters a bad email address with two .. then it appears that the order is not going through and they keep placing more orders because of the issue. Should have a check for no .. together because of the issue.

  2. #2
    Join Date
    May 2010
    Plugin Contributions

    Default Re: Two .. in email address [email protected] bad errors

    I tried this and I get a white page with a text warning, telling me to look at the email settings in the admin.

    Email Error: Could not instantiate mail function. Please check Admin->Configuration->Email Options->Email Transport.

    Then backpage and the account is created and the account can make orders etc.

    Though I dont think is zen cart specific, as I created a few test accounts with non zen cart store. Some spotted the error, most did not.

  3. #3
    Join Date
    Dec 2007
    Payson, AZ
    Plugin Contributions

    Default Re: Two .. in email address [email protected] bad errors

    I got the same error... the account gets created, but the email fails to send. Looking at the pattern, I'm not that good with patterns.... drives me nuts looking at them... this is what I found...


    //$valid_email_pattern = '^[a-z0-9]+[a-z0-9_\.\'\-]*@[a-z0-9]+[a-z0-9\.\-]*\.(([a-z]{2,6})|([0-9]{1,3}))$';
        $valid_email_pattern = '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$';
    Ran the first pattern through a simple email form it would pass the .. without any problems, with the second pattern it would fail if the .. was anywhere together in the address, single dots no problem... I'm guessing escaping the dot is including it in the pattern check under (\.[a-z]{2,3})
    Always forward thinking... Lost my mind!

  4. #4
    Join Date
    Jan 2004
    Blog Entries
    Plugin Contributions

    Default Re: Two .. in email address [email protected] bad errors

    Here's the fix:

        $valid_email_pattern = '^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$';
    and later in the file, add the RETURN FALSE; as shown:
      function rfc_validate_email($address)
        return FALSE;
        $rfcValidEmailPattern = '.......

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.



Similar Threads

  1. Replies: 4
    Last Post: 23 Jun 2011, 05:03 PM
  2. Two accounts same email address, BIG PROBLEM
    By godspeed27 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 16 Feb 2007, 03:25 PM
  3. Replies: 1
    Last Post: 17 Nov 2006, 03:14 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Zen-Cart, Internet Selling Services, Klamath Falls, OR