symfony/symfony — Issue #2718: Inconsistencies in email validation
Author: neilfse
Created: 2011-11-25 01:14:59+00:00
State: open

Hi,

I've found a small big in the email validation that is causing me some grief.

Using a compound email validator, the following email address is considered as valid: foo.@domain.com

However when trying to send an email to this email address using swiftmailer, an exception is thrown with the following message:
Address in mailbox given [foo.@domain.com] does not comply with RFC 2822, 3.6.2.
500 Internal Server Error - Swift_RfcComplianceException

I would expect the SF2 email validation to match the SwiftMailer email validation so these types of issues do not occur.

Thanks