- 4 min read
Is this Email Address Valid? — quiz answer sheet, click to expand.
Answer: local-part@domain
Explanation: “local-part@domain” is the precise terminology from RFC 5321, where the local-part is the identifier for the mailbox and the domain specifies the mail server.
Answer: true
Explanation: According to RFC 5321, the local-part (before the @) is case-sensitive, but in practice, most email services treat it as case-insensitive. The domain part is always case-insensitive.
Answer: true
Explanation: This is a feature called sub-addressing (or plus addressing). Many email services will deliver this to '[email protected]' and you can use the full address to filter emails.
Answer: true
Explanation: 'localhost' is a valid hostname, and emails can be sent to users on the local machine.
Answer: false
Explanation: Unquoted spaces are not allowed in the local-part of an email address. To be valid, it should be quoted like "john doe"@example.com.
Answer: true
Explanation: The local-part can be a quoted string, which can contain spaces.
Answer: true
Explanation: A forward slash '/' is a valid character in the local-part of an email address.
Answer: true
Explanation: Many special characters are allowed in the local-part of an email address, but some email providers may restrict their use.
Answer: false
Explanation: The local-part of an email address cannot have two consecutive dots.
Answer: true
Explanation: When the local-part is a quoted string, it can contain a wide range of special characters, and supports consecutive dots.
Answer: Multiple as long as they are in quotes
Explanation: Only one unquoted @ symbol is allowed in an email address. However, if the local-part is a quoted string, it can contain multiple @ symbols.
Answer: false
Explanation: While you can have quotes in the local-part, they must be used to enclose the entire local-part (e.g., "first and second"@example.com) or be escaped with a backslash.
Answer: true
Explanation: Parentheses denote a comment, which is valid in an email address but is usually ignored by the mail server. The actual address is '[email protected]'.
Answer: false
Explanation: Underscores '_' are not allowed in domain names (hostnames). They are, however, allowed in the local-part.
Answer: true
Explanation: IP address in square brackets are valid as the domain part, with a different syntax for IPv6 (user@[IPv6:::1).
Answer: true
Explanation: This is an internationalized email address. according to RFC 6531 The local-part can contain UTF-8 characters. The domain part would be converted to Punycode to be compatible with DNS.
Answer: true
Explanation: The local-part of an email address can include Unicode characters, including emojis. (RFC 6531)