javascript - Having some trouble with php mail on localhost with XAMPP

one text

I'm trying to work locally so I installed XAMPP and need help resolving an issue while sending mail via a php script on localhost. I've tested everything on a web-facing server and it works fine.

I'm getting the error 'Cannot POST /php/mail.php' from http://localhost:3000/php/mail.php.

I've changed the php.ini and sendmail.ini files and believe they are correctly configured for it to work.

Getting some errors in the DevTools console related to inline scripts but I think they are related to the error page.

Is there somewhere else I can look to debug this error?

Source