Email

New in version 12.0: The TCA type email has been introduced. It replaces the eval=email option of TCA type input.

New in version 13.0: When using the email type, TYPO3 takes care of generating the according database field. A developer does not need to define this field in an extension's ext_tables.sql file.

The TCA type email should be used to input values representing email addresses.

Migration

The migration from eval='email' to type=email is done like following:

 // Before

 'email_field' => [
     'label' => 'Email',
     'config' => [
         'type' => 'input',
         'eval' => 'trim,email',
         'max' => 255,
     ]
 ]

// After

 'email_field' => [
     'label' => 'Email',
     'config' => [
         'type' => 'email',
     ]
 ]

An automatic TCA migration is performed on the fly, migrating all occurrences to the new TCA type and triggering a PHP E_USER_DEPRECATED error where code adoption has to take place.

Note

The value of TCA type email columns is automatically trimmed before being stored in the database. Therefore, the eval=trim option is no longer needed and should be removed from the TCA configuration.