Closed (works as designed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
mail system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 May 2015 at 10:27 UTC
Updated:
12 Jul 2022 at 06:45 UTC
Jump to comment: Most recent
Comments
Comment #1
cilefen commentedAddresses without dots are allowed, with some exceptions:
http://tools.ietf.org/html/rfc5321#section-2.3.5
Comment #2
cilefen commentedThe full RFC section should be read by anyone interested in this issue http://tools.ietf.org/html/rfc5321#section-2.3.5.
Comment #3
cilefen commentedComment #4
danepowell commentedAs an example, username@localhost should be considered valid (#1478656: Unable to use @localhost in email address for site information)
Comment #5
andypostThis still blocks international adoption
Comment #12
drakythe commentedMy team and I discovered this issue today and were digging in. I made a comment over on https://www.drupal.org/node/2997196#comment-13475788
TL;DR: Why can we not specify the validator we want to use for email? The library provides a number of them and it would allow for more use cases without additional modules being implemented.
Comment #15
longwaveThis same question came from a client today.
I think this should be considered won't fix, as the RFC explicitly allows this as stated in #2.
https://serverfault.com/questions/721927/can-you-have-an-email-address-w... is the same question.
As an example, the .tt TLD has MX records so
example@ttis a perfectly valid email address and we should not stop whoever owns these email addresses from using them in Drupal.Comment #17
quietone commentedAccording to #1 and #15, and my own reading of RFC5321 there seems to be nothing to do here.
#12 asks how to specify a custom validator which is suitable for a separate issue, a Support request.
Comment #18
spokjeAgreeing with @longwave and @quietone about the fact that there's nothing to do here.
If someone wants to implement a custom validator, the Change Record here: https://www.drupal.org/node/2997196 mentions:
Comment #19
quietone commented@Spokje, thank you for answering the question in #12. I completely forgot to look at the change record.
Comment #20
larowlanI concur, so that makes four of us, so going to mark this as works as designed
Thanks everyone
Comment #21
darvanenHere's a new-ish module for greater control over email validation:
https://www.drupal.org/project/advanced_email_validation