I have coded a site with PHP. Our client deployed the site to IIS. They installed PHP 5.2 but mail() function doesnt work on their server.
They added this config file in the www folder:
web.config:
<configuration>
<system.webServer>
<handlers>
<remove name="PHP- fastcgi" />
<add name="PHP - FastCGI" path="*.php" verb="*"
modules="FastCgiModule"
scriptProcessor="C:\Php\php-cgi.exe" resourceType="Unspecified" />
</handlers>
<defaultDocument>
<files>
<add value="default.php" />
<add value="index.php" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
The following error is generated by the mail() function:
server error - 500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
I know there must be a simple solution with an edit of the php.ini file. But the person in charge has said that they couldnt edit php.ini and we have to code contact page with asp.
Is there any way to send mail using php in this case?
mailisn't actually working? How about the code you're using to call it.log_errorsanderror_logdirectives in php.ini for more information on where to find the actual log file. Iflog_errorsis "Off" orerror_logis blank, correct that problem and try again. Also, again, please post the PHP code you are using that is failing.