I created an observer to send emails at a particular event. I used transport builder to send an email, but I get zendframework validator errors, but the email address is OK.
I was able to solve the issue editing the file: vendor\zendframework\zend-validator\src\EmailAddress.php in a local test environment but it is unuseful for a production env that relies on correct vendor based on composer files.
Then I tried a dependency injection in my module for the class related to this file but it won´t work.
Is this injection in di.xml valid for zend-framework validator ? I mean is Magento available to do that ?
Anyone knows another way to solve this issue ?