How to fix “PHPMailer\PHPMailer\FILTER_FLAG_HOST_REQUIRED
If you have recently upgraded your PHP version from 7.4 to 8.1 then you would see the error while trying to send emails. The FATAL error: Uncaught Error: Undefined constant “PHPMailer\PHPMailer\FILTER_FLAG_HOST_REQUIRED. As we can see from the error message a constant is missing. The FILTER_FLAG_HOST_REQUIRED filter flag was deprecated in PHP 7.3 and Read More…