Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
There's a problem with the service "email validator" that considers "test@test" like a valid email address. But the address is invalid because there no top level domain.
Best Regards
Comments
Comment #1
cilefen CreditAttribution: cilefen commentedAddresses without dots are allowed, with some exceptions:
http://tools.ietf.org/html/rfc5321#section-2.3.5
Comment #2
cilefen CreditAttribution: 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 CreditAttribution: cilefen commentedComment #4
Dane Powell CreditAttribution: Dane Powell at Acquia 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 CreditAttribution: 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@tt
is a perfectly valid email address and we should not stop whoever owns these email addresses from using them in Drupal.Comment #17
quietone CreditAttribution: quietone as a volunteer 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 CreditAttribution: quietone as a volunteer 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