I am actually working on a website, and right now i am trying to create a function to reset a password when you forget it. Then i want to send an email to the user so he can reset his password. I am struggling on the email part. I looked on the internet that i should try PHPMailer, but i can’t make it work.
For more context, my compagny lended me a sandbox server wich i acceed to by SSH protocol, and its a Debian engine.
For the moment, i just wanted to try sending an regular email
Here is the code im trying :
Also, i think i correctly dowloaded PHPMailer on the debian engine.
When i log into the error log file, here is what i get :
Ty in advance for the people that will try to help !