Feature #87691
closedAllow email adresses with "+" in GeneralUtility::validEmail()
0%
Description
Hello everyone,
as a person who uses email addresses like test.benutzer+28@xyz.com for test purposes all day I would like to ask if there is a reason why "+" is not allowed in \TYPO3\CMS\Core\Utility\GeneralUtility::validEmail()?
See for more informations:
https://www.cs.rutgers.edu/~watrous/plus-signs-in-email-addresses.html
Thanks in advance!
Best regards
Daniel
Updated by Andreas Kiessling about 5 years ago
Hi Daniel,
Which TYPO3 version are you using? AFAIR, the validEmail method has changed some time ago, + should not be a problem in the local part
There is also a unit test which covers that: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php#L915
Updated by Georg Ringer about 5 years ago
- Related to Bug #73616: Different standards used in GeneralUtility::validEmail (RFC 3696) and swiftmailers Swift_Mime_Grammar-class (RFC 2822) added
Updated by Georg Ringer about 5 years ago
- Status changed from New to Needs Feedback
Updated by Daniel Hettler about 5 years ago
Andreas Kiessling wrote:
Hi Daniel,
Which TYPO3 version are you using? AFAIR, the validEmail method has changed some time ago, + should not be a problem in the local part
There is also a unit test which covers that: https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php#L915
Thanks for answering!
Sorry for the inconvenience, it seems like there was an issue with multiple validators in my form of EXT:form. The special character + inside email addresses is now valid and everything works as wanted. This issue can be closed.
Updated by Riccardo De Contardi about 5 years ago
- Status changed from Needs Feedback to Closed
@Andreas Otto † Kiessling thank you for your quick answer.
Closed as requested by the reporter.