Hello guys,
I am actualy trying to use PHPmailer in my hugo website.
I have downloaded a theme. In the theme there is a mailer.php file that is using PHPmailer.
The things is that there is smtp variables to modify in the mailer.php file that is into the template.
So i am moving this file into my static folder and i am updated it.
But when I do a post request unsing JS to pass the data to the php file that is in my static folder it return the php file itself.
I am knew to hugo so let me know if you need more informations.
Thanks in advance.
My folder structure -
static/js/custom-script.js (where my post is)
static/php/mailer.php