Results 1 to 3 of 3

Thread: .travel email validation

  1. #1
    khinester is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    34

    Default .travel email validation

    Hello,
    I have a .travel domain suffix but am finding that when I try to add an account with a users email for example user@company.travel I get an error:

    "Not a valid email address"

    I guess there must be some Regex somewhere which I need to change, can someone point me to it and advise as to how to alter it to accept the .travel suffix.

    Thanks

  2. #2
    khinester is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    34

    Default Re: .travel email validation

    Ok I have found the htdocs/modules/Users/Forms.php file



    Code:
    if (trim(form.email1.value) != "" && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(form.email1.value)) {
                    alert('"' + form.email1.value + '" $err_invalid_email_address');
                    return false;
            }
            if (trim(form.email2.value) != "" && !/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(form.email2.value)) {
                    alert('"' + form.email2.value + '" $err_invalid_email_address');
                    return false;
            }
    but how do I add the suffix travel to this?

    thanks

  3. #3
    khinester is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    34

    Default Re: [FIXED].travel email validation

    OK, I think I figured it, I changed the w{2,4} to w{2,6} which seems to have fixed it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HOW-TO guide for Email Campaigns.
    By agupta in forum Marketing/Campaign Management
    Replies: 146
    Last Post: 2012-01-31, 03:08 PM
  2. Poll: Dump Sugar Mail and integrate something better?
    By bjs3 in forum General Discussion
    Replies: 246
    Last Post: 2011-11-23, 04:05 PM
  3. email marketing feature requests
    By maxsutter in forum Feature Requests
    Replies: 1
    Last Post: 2008-10-11, 10:19 AM
  4. Replies: 11
    Last Post: 2007-11-21, 04:20 PM
  5. Replies: 1
    Last Post: 2007-02-21, 11:42 AM

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
  •