# Annotation Type Email

@Retention(CLASS) @Target(FIELD) public @interface Email

Requires the component value to be a syntactically valid e-mail address. The processor emits `RegexConstraint.validEmail(message)` into the `Validator` returned by `Binding#getValidator()`.

    @Bind(name="emailField") @Required @Email
    private String email;

Stacks well with `@Required` -- the standard email regex accepts the empty string as "not yet an address," so combine with `@Required` when the field is mandatory.

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `String`
  `message`
  Override the default error message ("Invalid Email Address").

- ## Element Details

  - ### message

    String message
    Override the default error message ("Invalid Email Address").
    Default:
      `""`