Bug #81524
closedCannot send mails with special characters in local part
0%
Description
Currently it is impossible to send mails with special characters in their local part, e.g. john.lötzsch@example.org
. Swiftmailer fails with the following error:
[ Swift_RfcComplianceException ] Address in mailbox given [john.lötzsch@example.org] does not comply with RFC 2822, 3.6.2. thrown in file er/lib/classes/Swift/Mime/Headers/MailboxHeader.php in line 345
The mentioned RFC 2822 has been extended by RFC 5335 which is supported by Swiftmailer 6.x and newer, thus an upgrade is necessary. This implies a few breaking changes however.
Updated by Mathias Brodala over 7 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 Susanne Moog about 6 years ago
- Target version changed from 9 LTS to Candidate for patchlevel
Updated by Georg Ringer almost 6 years ago
- Related to Bug #87077: Scheduler: Notification email address (e.g. system report) does not allow a local mail address added
Updated by Riccardo De Contardi about 5 years ago
what should be done here? Swiftmailer has been removed on version 10 https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/10.0/Breaking-88643-RemovedSwiftmailerswiftmailerDependency.html
Updated by Mathias Brodala about 5 years ago
The issue is still present in TYPO3v10. When I use the "Test Mail Setup" I get this:
Mail not sent
Given address is not a valid email address.
Updated by Georg Ringer about 5 years ago
There are 2 issues currently:
- \TYPO3\CMS\Core\Utility\GeneralUtility::validEmail fails with that
- \Symfony\Component\Mime\Encoder\IdnAddressEncoder::encodeString throws an exception
the latter has following comment
* This encoder does not support email addresses with non-ASCII characters in * local-part (the substring before @). To send to such addresses, use * Utf8AddressEncoder together with SmtpUtf8Handler. Your outbound SMTP server must support * the SMTPUTF8 extension.
Updated by Georg Ringer almost 5 years ago
- Related to Feature #90370: Use Egulias\EmailValidator for email validation added