• Georg Ringer's avatar
    [FEATURE] Improved Email Validation · 7e95ee3a
    Georg Ringer authored and Daniel Goerz's avatar Daniel Goerz committed
    The method :php`\TYPO3\CMS\Core\Utility\GeneralUtility::validEmail`
    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 to be used in the LocalConfiguration.php or
    AdditionalConfiguration.php.
    
    Example:
    
       $GLOBALS['TYPO3_CONF_VARS']['MAIL']['validators'] = [
         \Egulias\EmailValidator\Validation\RFCValidation::class,
         \Egulias\EmailValidator\Validation\DNSCheckValidation::class'
       ];
    
    The RFCValidation validator is still be used as default.
    
    Furthermore, following validators are available:
    
    - Egulias\EmailValidator\Validation\DNSCheckValidation
    - Egulias\EmailValidator\Validation\SpoofCheckValidation
    - Egulias\EmailValidator\Validation\NoRFCWarningsValidation
    
    It is also possible to provide own validators which must implement
    the Egulias\EmailValidator\Validation\EmailValidation interface.
    
    If multiple validators are provided, each validator must return TRUE.
    
    Resolves: #92531
    Releases: master
    Change-Id: I9c5a0573c2f9bff56bf869dc221a2c0ffd75417b
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66179
    
    
    Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
    Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
    Reviewed-by: default avatarJosef Glatz <josefglatz@gmail.com>
    Reviewed-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
    7e95ee3a