27 return \ilUtil::groupNameExists($groupName);
41 $groupName = substr($address->
getMailbox(), 1);
58 return (
$host == $this->host || 0 === strlen(
$host));
An exception for terminatinating execution or to throw for unit testing.
Class ilGroupNameAsMailValidator.
__construct(string $host, callable $groupNameCheckCallable=null)
validate(\ilMailAddress $address)
Validates if the given address contains a valid group name to send an email.
isHostValid(string $host)
Checks if the given host is valid in the email context.