Skip to content

Kirby 4.5.0

email

Checks for valid email addresses

V::email($value): bool

Parameters

Name Type Default
$value * mixed

Return type

bool

In your code

if(V::email('bastian@getkirby.com')) {
  echo 'Yay, valid!';
}

In fields

fields:
  example:
    label: Example field
    type: text
    validate: email