Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: quotes in email address

  1. #1
    BUBU is offline Member
    Join Date
    Mar 2006
    Location
    Mississauga, ON Canada
    Posts
    73

    Default quotes in email address

    Is it possible to edit what valid characters are allowed in an email address? I have a customer that has their email address as <d'amigo@mydomain.com>. This fails the email test.

    Thanks.

  2. #2
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    But what if that is their email address? If you validate those characters out they won't get any emails from the system! I'm not sure whether email addresses can have special characters, but if they can you have to allow for them or you can't contact your customer.
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!

  3. #3
    esedirect is offline Senior Member
    Join Date
    Feb 2010
    Location
    Norfolk, UK
    Posts
    343

    Default

    Just realised what you're getting at. Currently the RegEx validation doesn't allow for quotes. Not very good at RegEx myself, but you'll need to change this:

    Code:
    ValidationExpression="^[a-zA-Z0-9][-\w\.\+]*@([a-zA-Z0-9][\w\-]*\.)+[a-zA-Z]{2,4}$"
    on line 52 of createaccount.aspx

    to perhaps this:
    Code:
    ValidationExpression="^[a-zA-Z0-9][-\w\.\+\']*@([a-zA-Z0-9][\w\-]*\.)+[a-zA-Z]{2,4}$"
    Last edited by esedirect; 08-04-2010 at 02:29 AM.
    http://www.esedirect.co.uk
    --------------------------------------------------------------------------
    Using MS 9.2.0.0 with the following customisations:

    Lightbox/Fancybox enlarged images;
    Auto-suggest searchbox;
    Extra product information shown only to our IP Address (such as supplier info, costs, etc.);
    Failed transactions emailed via trigger;
    Custom app to show basket contents when customer online;
    Orders pushed through to accounting systems.

    All the above without source!