Login to follow
YAEmailValidator

YAEmailValidator (ODC)

Stable version 0.9.2 (Compatible with ODC)
Uploaded on 20 Feb by António Pereira
YAEmailValidator

YAEmailValidator (ODC)

Documentation
0.9.2

Action: EmailValidate

Description: Validates the specified email address (using the RFC 5321) with optional flags for trimming and international/TLD support.


Input parameters:

  • emailToValidate: The email to validate;
  • allowLeadingTrailingWhitespace: When true, leading/trailing whitespace will be ignored (the email is trimmed before validation). When false, the method returns false if the provided email contains any leading or trailing whitespace;
  • allowInternational: If true, non-ASCII international addresses are allowed;
  • allowTopLevelDomains: If true, top-level domains are allowed (prevents local-only addresses like 'user@localhost').

Output parameters:

  • isValidEmail: True, if email is valid according to RFC 5321. Otherwise, false.