Valid email address rules
Here are the valid email address rules:
1. Local Part: The local part is the part of the email address that comes before the @
symbol. It can contain:
- Letters (a-z, A-Z)
- Numbers (0-9)
- Dots (.)
- Hyphens (-)
- Underscores (_)
- The length of the local part can be between 1 and 64 characters.
2. Domain: The domain is the part of the email address that comes after the @
symbol. It can contain:
- Letters (a-z, A-Z)
- Numbers (0-9)
- Dots (.)
- Hyphens (-)
- The length of the domain can be between 1 and 253 characters.
3. Top-Level Domain (TLD): The TLD is the part of the domain that comes after the last dot (.) in the domain name. It can contain:
- Letters (a-z, A-Z)
- Numbers (0-9)
- The length of the TLD can be between 1 and 6 characters.
4. Email Address Format: The email address format is:
5. Special Characters: The following special characters are allowed in an email address:
@
(at symbol).
(dot)-
(hyphen)_
(underscore)
6. Invalid Characters: The following characters are not allowed in an email address:
- Space characters
- Quotes (")
- Commas (,)
- Colons (:)
- Semicolons (;)
- Equals signs (=)
- Plus signs (+)
- Backslashes ()
- Forward slashes (/)
7. Internationalized Domain Names (IDNs): IDNs allow non-ASCII characters in domain names. They are allowed in email addresses, but the email client must be able to handle them correctly.
8. Email Address Length: The maximum length of an email address is 254 characters.
9. Email Address Syntax: The email address syntax is defined by the following rules:
- The local part can contain any characters except for the
@
symbol. - The domain can contain any characters except for the
@
symbol. - The TLD can contain any characters except for the
@
symbol.
By following these rules, you can create a valid email address that is compliant with the standard email address format.