0
Dear developers, The following warning appears in the Eclipse IDE:
Phpmailer cannot be resolved to a type
I installed Phpmailer through commiserate, The strange thing is that the code is working properly, that is, the email is successfully sent, but all over the IDE there are these annoying warnings. Does anyone know how to fix this? Follow the part of the code where the warning appears.
require $_SERVER["DOCUMENT_ROOT"] . "/vendor/autoload.php";
...
$mail = new PHPMailer\PHPMailer\PHPMailer(); //O aviso aparece aqui
...