Closed (duplicate)
Project:
Drupal core
Version:
7.x-dev
Component:
mail system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 May 2012 at 20:04 UTC
Updated:
1 Mar 2016 at 16:08 UTC
Jump to comment: Most recent
Comments
Comment #1
nerdoc commentedComment #2
ankur commentedWell, according to specification for email addresses in RFC 5321 and RFC 5322, you're not allowed to start or end the local-part of an email address with a ".". Nor are you allowed to have 2 consecutive "." characters in sequence.
For a summary, see http://en.wikipedia.org/wiki/Email_address#Invalid_email_addresses
However, there are a lot of email addresses out that that don't conform to this specification. The question is: do we accommodate those email addresses by writing our own validation function or do we stick to the current implementation, which uses PHP's
filter_var()function (with PHP'sFILTER_VALIDATE_EMAILfilter to enforce the specification.Switching version to 8.x. If any action is taken, it'll probably be back-ported to 7.x.
Comment #3
cilefen commentedvalid_email_address() has been deprecated and replaced with egulias/email-validator. Please re-test.
Comment #4
a.milkovskyvalid_email_address is used for Drupal 7. Issue is relevant for 7.x
The issue is described at http://php.net/manual/en/filter.filters.validate.php#101693 :
Would be good to replace valid_email_address(0 with something more reliable.
Comment #5
cilefen commentedThen this is a duplicate of #2343043: valid_email_address() should use egulias/EmailValidator and become deprecated.