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 ?

Thanks !

  • Validator is buggy, use simple mail() – Gustavo Ulyssea Oct 21 at 18:07

As far as I could understand Magento mailing system is a little buggy on version that I am using - 2.3.2.

I tried a dozen of different ways, and I finally came to a solution using old PHP friend original mail() function manually.

Even though it was not the way I intended, it works fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.