Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Apostrophe in new user email address

  1. #1
    russfordyce is offline Member
    Join Date
    May 2007
    Posts
    5

    Default Apostrophe in new user email address

    I just tried adding a new user to the system....irish guy...o'donnell. Sugar won't let me save the user instead returns an error - "invalid email address"

    i.e. - bobbyo'donnell@mail.com

    HELP!

  2. #2
    Join Date
    Feb 2007
    Location
    San Jose, CA
    Posts
    1,169

    Default Re: Apostrophe in new user email address

    Hi there,

    I don't think you can put an apostrophe in any email address (whether it's in Sugar or not). Isn't that a special character that's disallowed by email systems?
    Susie Williams

  3. #3
    russfordyce is offline Member
    Join Date
    May 2007
    Posts
    5

    Default Re: Apostrophe in new user email address

    While I am no expert, the outlook card for this user has an apostrophe in the email address. My boss has one too.... I am able to email from outside the company via gmail into the company with an apostrophe in the email address......so...I think it is allowed.

    How can I turn off the email validation?

  4. #4
    rps1984 is offline Sugar Community Member
    Join Date
    Jun 2006
    Location
    New York
    Posts
    62

    Default Re: Apostrophe in new user email address

    That character is illegal in e-mail addresses. I have a feeling the display name (or real name) uses one, but the actual from address does not.

    Example of a from address:
    bobbyo'donnell@example.com <bobbyodonnell@example.com>

    Notice the one with the ' and the one without the '
    Red Pepper Solutions LLC
    New York

  5. #5
    karlsfre is offline Junior Member
    Join Date
    Mar 2007
    Posts
    3

    Default Re: Apostrophe in new user email address

    You CAN have an apostrophe in the email address. It is actually quite common here in Ireland.

    The email address is defined in RFC 822 http://www.w3.org/Protocols/rfc822/, which basically says that the part before the @ can have any ASCII character apart from Space, Control characters, "(", ")", "<", ">", and "@".

  6. #6
    karlsfre is offline Junior Member
    Join Date
    Mar 2007
    Posts
    3

    Default Re: Apostrophe in new user email address

    I actually get the email address into SugarCRM, through the SOAP interface to Prospects (a.k.a Targets)

    My problem is that when Sugar goes to send the email it translates the apostrophe to %039 (the URL encoding for the apostrophe, ASCII character 0x39).

    So, instead of sending the email to bobbyo'donnell@example.com it sends an email to bobbyo%039donnell@example.com. Then I get an error message back from the example.com mail server, saying that the mailbox does not exist.

    At the moment I have a good few users who cannot get their newsletter because of this problem.

    It seems this bug is fixed in the next release: 4.5.1g.
    Last edited by karlsfre; 2007-10-18 at 09:42 AM.

  7. #7
    leigh is offline Sugar Community Member
    Join Date
    May 2005
    Posts
    59

    Default Re: Apostrophe in new user email address

    Any indication of what/where the problem is? I have a 3.5.1c installation which is showing the same issues, I'd much rather fix the bug than upgrade.

  8. #8
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Apostrophe in new user email address

    The email RFC explains exactly which chars are allowed, just see http://www.rfc-editor.org/rfc/rfc2822.txt for details.

    I could not find there, that apostrophes are disallowed

    But I see alsoe that they are a great problem that should be solved.

    hk

  9. #9
    rjhunja is offline Junior Member
    Join Date
    Aug 2008
    Posts
    1

    Default Re: Apostrophe in new user email address

    Any intent of fixing this? 5.1a and it's still broken. We see lots of email addresses out there that have apostrophes and other email systems handle them fine.

  10. #10
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Apostrophe in new user email address

    The regular expressions for this if you wish to edit and allow apostrophes is in:
    include/SugarEmailAddress/SugarEmailAddress.php (look for $regex)
    jssource/src_files/include/javascript/sugar_3.js (function isValidEmail)

Page 1 of 3 123 LastLast

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. email marketing feature requests
    By maxsutter in forum Feature Requests
    Replies: 1
    Last Post: 2008-10-11, 10:19 AM
  3. Email and user setup confusion
    By Buckie in forum Help
    Replies: 1
    Last Post: 2006-01-18, 05:41 PM
  4. Second email address for contact bug
    By dcharman in forum General Discussion
    Replies: 0
    Last Post: 2005-12-28, 03:53 AM
  5. Cannot Login
    By Dillon in forum Help
    Replies: 16
    Last Post: 2004-10-13, 02:52 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
  •