Feature: #92531 - Improved Email Validation
See forge#92531
Description
The method \TYPO3\
is used to
validate a given email address through the core and TYPO3 extensions.
The validation can now be configured by providing the used validators in
the Local
or Additional
:
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['validators'] = [
\Egulias\EmailValidator\Validation\RFCValidation::class,
\Egulias\EmailValidator\Validation\DNSCheckValidation::class
];
By default, the validator \Egulias\
is used. The following validators are available by default:
\Egulias\
Email Validator\ Validation\ DNSCheck Validation \Egulias\
Email Validator\ Validation\ Spoof Check Validation \Egulias\
Email Validator\ Validation\ No RFCWarnings Validation
Additionally it is possible to provide an own implementation by implementing the
interface \Egulias\
.
If multiple validators are provided, each validator must return TRUE
.
Impact
Using additional validators can help to identify if a provided email address is valid or not.