UserRules::validEmail()
Validates an email address
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 |