---
title: "Email"
description: "Add Email control to your custom blocks for WordPress using the Lazy Blocks plugin."
url: "https://www.lazyblocks.com/docs/blocks-controls/email/"
lastUpdated: 2026-09-09
source: "blocks-controls/email.mdx"
---
# Email

Email control allows you to add and validate email addresses in your blocks.

## Control Settings

- **Placeholder** (`placeholder`) - text displayed when the value is empty. Empty by default
- **Characters Limit** (`characters_limit`) - the `maxlength` put on the input, from 0 to 524288. Empty by default, which is no limit

## Usage

```php title="PHP" /$attributes['control_name']/
<p>
  <a href="mailto:<?php echo esc_attr( $attributes['control_name'] ); ?>">
    Contact us
  </a>
</p>
```

```hbs title="Handlebars" /{{control_name}}/
<p>
  <a href="mailto:{{control_name}}">
    Contact us
  </a>
</p>
```

```php title="Post Meta" /get_lzb_meta( 'control_meta_name' )/
<p>
  <a href="mailto:<?php echo esc_attr( get_lzb_meta( 'control_meta_name' ) ); ?>">
    Contact us
  </a>
</p>
```

## Documentation Index
> Fetch the complete documentation index at: https://www.lazyblocks.com/llms.txt
> Fetch every page in a single file at: https://www.lazyblocks.com/llms-full.txt
