Closed thierryler closed 1 month ago
v::alnum('@', '.')->email()->validate($email);
you could also add stringType + length (i always do).
Thanks for reacting to the issues, @andus4n!
If your go for that solution, @thierryler, you will also need to add other characters, like _
and -
, which are also common in emails. The v::charset('ASCII')
is also a good option. However, all those are error prone, though. The best solution would be to indeed have an email client that would allow those emails, since they're valid.
I will close this one now, it seems there isn't anything else to do! Feel free to open this issue whenever you'd like.
Actually, I plain to move from swift mailer (on my linux server) to Brevo(by API). I will then try again.
Hello,
For some reasons, my email client can not send emails to addresses with accented characters. Therefore, I'd like to check emails.
I wrote:
Here
v::email()->validate($email)
does not fail. And it is OK.But i'd like to add a condition like this:
What would be the best way? Is
v::charset('ASCII')
a good idea?Thx Th