martinberlin / cale-integrations

CALE configurator to add APIs to your epaper screens - PHP/Symfony 4.4
https://cale.es
MIT License
6 stars 0 forks source link

Add FRC 2822 email validation #37

Open martinberlin opened 4 years ago

martinberlin commented 4 years ago

Since some users are specially creative when inventing fake emails a new validation needs to be in place

/var/www/cale.es/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php line 355 {"exception":"[object] (Swift_RfcComplianceException(code: 0): Address in mailbox given [se.r.ge.y.n.ovi.kov20...1977@gmail.com] does not comply with RFC 2822

This should validate that the emails are not like this: se.r.ge.y.n.ovi.kov20...1977@gmail.com And are FRC 2822 compilant.

TOP priority this. There are still error with the newsletter tool: Uncaught PHP Exception Swift_RfcComplianceException: "Address in mailbox given [io.oxve.rtri.XX.@gmail.com] does not comply with RFC 2822, 3.6.2."