Cannot send mails with special characters in local part
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
#4 Updated by Riccardo De Contardi 3 months 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
#6 Updated by Georg Ringer 3 months 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.