A
A
Alexander Vladimirovich2021-09-27 11:58:51
symfony
Alexander Vladimirovich, 2021-09-27 11:58:51

How to check mx when validating email via annotations?

Greetings!
I had email validation like this in entity:

* @Assert\Email(message = "The email '{{ value }}' is not a valid email.", checkMX = true)

After upgrading symfony from 4.4 to 5.2
, this message appeared:
The options "checkMX" do not exist in constraint "Symfony\Component\Validator\Constraints\Email".

how to do this check?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BoShurik, 2021-09-27
@polyanin

It was disabled in version 5: https://github.com/symfony/symfony/issues/34681#is...
Use egulias/email-validator directly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question