1 <?php declare(strict_types=1);
41 $groupName = substr($address->
getMailbox(), 1);
58 return ($host == $this->host || 0 === strlen($host));
__construct(string $host, callable $groupNameCheckCallable=null)
Class ilGroupNameAsMailValidator.
static groupNameExists($a_group_name, $a_id=0)
checks if group name already exists.
isHostValid(string $host)
Checks if the given host is valid in the email context.
validate(ilMailAddress $address)
Validates if the given address contains a valid group name to send an email.