Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_email_status
  • Reference
  • Frontend developer
  • Email
  • Template filter
  • Validate

is_valid_email

Module

mod_email_status

Test whether a value has valid email-address syntax.

Empty values and values of another type return false. This filter checks syntax only; it does not verify that the address or domain exists.

For example:

{% if email|is_valid_email %}
    The address has valid syntax.
{% endif %}

Edit on GitHub

Related documentation

Filters

is_letsencrypt_valid_hostname

Test if a hostname can be used for a Let’s Encrypt certificate.

Filters

normalize_email

Normalize an email address, used in the identity management.

Validators

email_unique

Check if an entered e-mail address is unique by querying model#identity for the email key:

Filters

gravatar_code

Calculate the gravatar code for an e-mail address:

Validators

email

Check if the content of the input field is an e-mail address.

Filters

get_admin_url

Return the absolute administration URL for a Zotonic site.

Filters

survey_is_history_back

Test whether a survey respondent may return to the previous page in a history.

Filters

is_user

Test if a resource is a user.

Filters

media_exif_value

Formats EXIF values for display in templates.

GitHub © 2026 Zotonic