Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Messaging Namespace / MailAddressHelper Class / IsValidEmail Method
The email address to validate
The parameter is unused.
In This Topic
    IsValidEmail Method (MailAddressHelper)
    In This Topic
    Checks if the given string is a valid email address according to the format rules followed by System.Net.Mail.MailAddress.
    Syntax
    public static bool IsValidEmail( 
       string email,
       bool useRegex
    )

    Parameters

    email
    The email address to validate
    useRegex
    The parameter is unused.

    Return Value

    true if given email is valid, false otherwise
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also