Email::EMAIL_MAX_LENGTH

Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/Element/Email.php \Drupal\Core\Render\Element\Email::EMAIL_MAX_LENGTH
  2. 8.9.x core/lib/Drupal/Core/Render/Element/Email.php \Drupal\Core\Render\Element\Email::EMAIL_MAX_LENGTH
  3. 10 core/lib/Drupal/Core/Render/Element/Email.php \Drupal\Core\Render\Element\Email::EMAIL_MAX_LENGTH

Defines the max length for an email address.

The maximum length of an email address is 254 characters. RFC 3696 specifies a total length of 320 characters, but mentions that addresses longer than 256 characters are not normally useful. Erratum 1690 was then released which corrected this value to 254 characters.

See also

http://tools.ietf.org/html/rfc3696#section-3

http://www.rfc-editor.org/errata_search.php?rfc=3696&eid=1690

File

core/lib/Drupal/Core/Render/Element/Email.php, line 41

Class

Email
Provides a form input element for entering an email address.

Namespace

Drupal\Core\Render\Element

Code

const EMAIL_MAX_LENGTH = 254;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.