Skip to content

Kirby 3.8.4

UserRules::validEmail()

Validates an email address

UserRules::validEmail(Kirby\Cms\User $user, string $email, bool $strict = false): bool

Parameters

Name Type Default
$user * Kirby\Cms\User
$email * string
$strict bool false

Return type

bool

Exceptions

Type Description
Kirby\Exception\DuplicateException If the email address already exists
Kirby\Exception\InvalidArgumentException If the email address is invalid

Parent class

Kirby\Cms\UserRules