Skip to content

Correct Directory for PHP Form Handling Script

I am currently working on a “Contact Us” page for my Magento website, where users can submit an inquiry form, and the details will be sent to a company email via a PHP script (send-email.php). However, I am unsure where exactly this PHP file should be placed within my FTP directory structure to function correctly.
Could you please advise on the correct directory to upload this file? Or this can be added within Magento too? Additionally, are there any specific configurations or permissions I need to set to ensure it runs properly?

JS Code in Magento Page Content

Contact Us PageFTP