DomainNameUtil.isValidEmailDomainAddress

Checks the validity of the domain name used in an email. To be valid it should be either a valid host name, or an IP address wrapped in [].

@param domain domain to check for validity @return {@code true} if the provided string is a valid domain, {@code false} otherwise

class DomainNameUtil
static
bool
isValidEmailDomainAddress
(
string domain
)

Meta