Results 1 to 9 of 9
  1. #1
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    0

    Default Account Creation E-Mail Address Problem

    I installed zen cart, customized it fully to my needs, but when I try and create a customer account I get this error:

    Sorry, my system does not understand your email address. Please try again.
    I get that no matter which email I use.. they are all valid name AT address DOT com email addresses.

    Does anyone know why this error is showing up and how to fix it?

    Thanks.

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Account Creation E-Mail Address Problem

    The address is failing the validation check in includes/modules/create_account.php
    Code:
      } elseif (zen_validate_email($email_address) == false) {
        $error = true;
    
        $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
    either you've modified that section of the file or you've got a problem with the function zen_validate_email() in includes/functions/functions_email.php
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Account Creation E-Mail Address Problem

    }

    if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {
    $error = true;

    $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR);
    } elseif (zen_validate_email($email_address) == false) {
    $error = true;

    $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
    } else {
    $check_email_query = "select count(*) as total
    from " . TABLE_CUSTOMERS . "
    where customers_email_address = '" . zen_db_input($email_address) . "'";

    $check_email = $db->Execute($check_email_query);

    if ($check_email->fields['total'] > 0) {
    $error = true;

    $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);
    }
    }
    Is that what I should see on that part of the file?

  4. #4
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Account Creation E-Mail Address Problem

    Here's the email validate section in includes/functions/functions_email.php... does everthing look right?

    /**
    * validates an email address
    *
    * Sample Valid Addresses:
    *
    * first DOT last AT host DOT com
    * firstlast AT host DOT com
    * "first last"@host.com
    * "first@last"@host.com
    * first-last AT host DOT com
    * first'[email protected]
    * first.last@[123.123.123.123]
    *
    * hosts with either external IP addresses or from 2-6 characters will pass (e.g. .jp or .museum)
    *
    * Invalid Addresses:
    *
    * first last AT host DOT com
    * '[email protected]
    * @param string The email address to validate
    * @return booloean true if valid else false
    **/
    function zen_validate_email($email) {
    $valid_address = true;

    // fail if contains no @ symbol
    if (!strstr($email,'@')) return false;

    // split the email address into user and domain parts
    // need to update to trap for addresses in the format of "first@last"@someplace.com
    // this method will most likely break in that case
    list( $user, $domain ) = explode( "@", $email );
    $valid_ip_form = '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}';
    $valid_email_pattern = '^[a-z0-9]+[a-z0-9_\.\'\-]*@[a-z0-9]+[a-z0-9\.\-]*\.(([a-z]{2,6})|([0-9]{1,3}))$';
    //preg_match('/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9\._-]+)+$/', $email))
    //preg_match('/^[a-z0-9&\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*?[a-z]+$/is');
    $space_check = '[ ]';

    // strip beginning and ending quotes, if and only if both present
    if( (ereg('^["]', $user) && ereg('["]$', $user)) ){
    $user = ereg_replace ( '^["]', '', $user );
    $user = ereg_replace ( '["]$', '', $user );
    $user = ereg_replace ( $space_check, '', $user ); //spaces in quoted addresses OK per RFC (?)
    $email = $user."@".$domain; // contine with stripped quotes for remainder
    }

    // fail if contains spaces in domain name
    if (strstr($domain,' ')) return false;

    // if email domain part is an IP address, check each part for a value under 256
    if (ereg($valid_ip_form, $domain)) {
    $digit = explode( ".", $domain );
    for($i=0; $i<4; $i++) {
    if ($digit[$i] > 255) {
    $valid_address = false;
    return $valid_address;
    exit;
    }
    // stop crafty people from using internal IP addresses
    if (($digit[0] == 192) || ($digit[0] == 10)) {
    $valid_address = false;
    return $valid_address;
    exit;
    }
    }
    }

    if (!ereg($space_check, $email)) { // trap for spaces in
    if ( eregi($valid_email_pattern, $email)) { // validate against valid email patterns
    $valid_address = true;
    } else {
    $valid_address = false;
    return $valid_address;
    exit;
    }
    }
    return $valid_address;
    }


    ?>

  5. #5
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Account Creation E-Mail Address Problem

    Have you turned on the Validate Email addresses using DNS? If so - turn it off.

  6. #6
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: Account Creation E-Mail Address Problem

    Kim, any specific reason for this suggestion to turn it off? We've always had it turned on without a problem. What do we lose/gain by setting to true/false.

    Thanks!

  7. #7
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Account Creation E-Mail Address Problem

    Quote Originally Posted by Kim
    Have you turned on the Validate Email addresses using DNS? If so - turn it off.
    Nope, that's always been turned off..

  8. #8
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Account Creation E-Mail Address Problem

    Anyone?

    Can some some check their files to see if mine look right?

  9. #9
    Join Date
    May 2006
    Posts
    11
    Plugin Contributions
    0

    Default Re: Account Creation E-Mail Address Problem

    Please?...

 

 

Similar Threads

  1. v139h account creation welcome email contains no to: address
    By david53 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 16 Apr 2012, 05:08 PM
  2. Account Creation Problem
    By Nick1973 in forum General Questions
    Replies: 2
    Last Post: 5 Oct 2011, 01:02 PM
  3. Account creation problem
    By sadwargamer in forum General Questions
    Replies: 2
    Last Post: 9 May 2011, 09:25 PM
  4. Replies: 2
    Last Post: 11 Jan 2009, 09:39 AM
  5. Account Creation Problem
    By RTFM in forum General Questions
    Replies: 1
    Last Post: 21 Mar 2007, 02:57 PM

Bookmarks

Posting Permissions

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