8000 Inconsistencies in email validation · Issue #2718 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Inconsistencies in email validation #2718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Nov 25, 2011 · 3 comments
Closed

Inconsistencies in email validation #2718

ghost opened this issue Nov 25, 2011 · 3 comments

Comments

@ghost
Copy link
ghost commented Nov 25, 2011

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

@stealth35
Copy link
Contributor

see #1581

@webmozart
Copy link
Contributor

So.. duplicate?

@masakielastic
Copy link

According to the explanation from the article in Linux Journal (http://www.linuxjournal.com/article/9585?page=0,1), dot are not allowed to be the tail of local part.

The local part may consist of alphabetic and numeric characters, and the following characters: 
!, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, } and ~, 
possibly with dot separators (.), inside, but not at the start, end or next to another 
dot separator (RFC 2822 3.2.4).

So, the issue is whether to support non-RFCs compliant email addresses not whether to conform to RFCs since there are various interpretations and misinterprets about RFCs due to theirs abstract explanation and some mail services violate RFCs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0