Versions
Describe the bug
Since our mail client isn't SMTPUTF8-aware it can't handle UTF-8 encoded email addresses. Vee Validate seems to accept UTF-8 in email validation rule (which is an SMTP Extension: RFC 6531). We need a way to configure that rule to don't accept every UTF-8 character.
To Reproduce
Steps to reproduce the behavior:
föö@bar.deExpected behavior
Since the email address is invalid it should give a validation error
Demo Link
https://baianat.github.io/vee-validate/guide/rules.html#email
Desktop (please complete the following information):
You could overwrite the rule with your own implementation at the moment. as vee-validate uses the validator.js isEmail method to check for valid emails which allows utf-8 chars by default.
Replace it with a rule that passes the allow_utf8_local_part to the underlying validator function.
validator.isEmail('föö@bar.de', {
allow_utf8_local_part: true
});

This should definitely work but it shows invalid. Happens in my own app as well.
@toadkicker Sorry I didn't see your comment, but the gmail emails require more than 5 characters in the identifier to be valid so [email protected] is actually invalid. We use validator.js for email validation and a couple of other validations.
Thanks that is helpful!
closed by 2165754
Most helpful comment
@toadkicker Sorry I didn't see your comment, but the
gmailemails require more than 5 characters in the identifier to be valid so[email protected]is actually invalid. We usevalidator.jsfor email validation and a couple of other validations.