Results 1 to 3 of 3

Thread: Storing email address with a hyphen before the at symbol fails

  1. #1
    dtgreenwood is offline Junior Member
    Join Date
    Sep 2009
    Posts
    3

    Exclamation Storing email address with a hyphen before the at symbol fails

    Hi Sugar community!

    I've search the bug tracker for any mention of my issue but can't find anything. If it's there but I can't find it let me know.

    We are unable to save a lead record with an email address that contains a hyphen('-') before the at symbol('@').

    I can modify everything in the database and the system carries on without issue from here.

    Has anybody else come across the same issue?

    Here's our system setup:
    • Operating system type and version - Red Hat Enterprise Linux Server release 5.4 (Tikanga)
    • Sugar version and edition - SugarCRM Community Edition Version 5.2.0e (Build 5626)
    • Webserver type and version - Apache/2.2.3 (Red Hat)
    • PHP version - 5.2.11
    • MySQL server version - 5.0.77


    I hope that someone can shed some light on this, I'm stumped.

    Regards,
    dtgreenwood.

  2. #2
    dtgreenwood is offline Junior Member
    Join Date
    Sep 2009
    Posts
    3

    Default Re: Storing email address with a hyphen before the at symbol fails

    Hi everyone, Happy New Year!

    I've continued to look for anything related to this issue but am coming up short. I just wanted to bump this issue up again to give it the chance for some more fresh eyes to take a look.

    It's a really weird issue and one that I can't see anyone ever having before.

    Any and all help would be appreciated.

    Regards,
    dtgreenwood.

  3. #3
    dtgreenwood is offline Junior Member
    Join Date
    Sep 2009
    Posts
    3

    Default Re: Storing email address with a hyphen before the at symbol fails

    Hello again,

    I've searched and search and can not find anyone else with this issue, could someone be kind and test the creation of leads with the following email address to prove that it's just an issue in my installation?

    The following email address will fail to add when creating/editing a lead record:
    • test--email@testing.com
    • testemail-@testing.com


    I've found the cause of the problem and it seems to be the regex class variable in the SugarEmailAddress class.
    The addAddress() function tries if(preg_match($this->regex, $addr)) { which is stopping the valid email address from being added.

    I find it very weird that no one has responded to this thread, it's been here a while now.

    Is there anyone out there that could lend some advice on this?

    Thanks,
    dtgreenwood.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AddTimeStamp not storing date correctly
    By jjolliffe in forum Developer Help
    Replies: 5
    Last Post: 2009-09-15, 12:36 PM
  2. Drop downs not storing data
    By devknob in forum Help
    Replies: 3
    Last Post: 2007-04-25, 04:05 PM
  3. Replies: 2
    Last Post: 2007-01-27, 12:22 AM
  4. Attachment Storing Mechanism
    By orzo in forum Feature Requests
    Replies: 1
    Last Post: 2006-09-02, 11:49 PM
  5. Email attachment symbol
    By techex in forum Feature Requests
    Replies: 0
    Last Post: 2005-08-17, 03:58 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
  •