Jump to content

Error with HTML form inserted in CMS page


crespil

Recommended Posts

Hello everyone. I have an HTML form that I need to display (and execute) within a CMS page. The form looks Ok, but after clicking "SEND" it gives me the following error:

Warning: mail(/var/sendmail/phpmail.log): failed to open stream: Permission denied in /www/mysite/htdocs/modules/formularios/correo.php on line 28

I put my form files in a folder with permissions 755 and 644 for the files. I understand this is common, but I can't get it to work. Please, if anyone has advice on how to solve this, it would be appreciated...

Thanks in advance

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

It appears that the correo.php script is attempting to write to /var/sendmail/phpmail.log, which may be located outside the directory where your form files reside.

To address this issue, We recommend the following steps:

1. Check if the directory /var/sendmail/ exists and confirm that the web server has permission to write to it. It's possible that the log file is stored in a location where the server does not have sufficient permissions to write.

2 . Adjust the permissions on the phpmail.log file: Ensure that the web server has the necessary permissions to write to the log file. You can modify the permission to 666.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...