Phpmailer cannot be resolved to a type

Asked

Viewed 82 times

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
    ...

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

1


Try to access the Project/Clean menu, then right-click on your server and clean it (Will clean and rebuild)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.