PHP.INI directory override NOT working

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP.INI directory override NOT working

Postby chuckluttor » 22. August 2017 19:06

I am attempting to override the mail.log PHP.INI parameter which is "" , an empty string. Neither, putting the override into .htaccess nor into .user.ini will cause logging of the mail() function. It should be noted that my php runs as part of Apache and therefore putting the override into .htaccess is the recommended (mandatory?) method. But this causes Apache to not find anything in that directory. What am I doing wrong? It seems to me that my .htaccess is incorrect, but I do not know what to put into it. I do not wish to override any Apache httpd.conf directives. Here are my ini attempts:-

PHP.INI

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
mail.log=""
; Log mail to syslog (Event Log on Windows).
;mail.log = syslog

.user.ini or .htaccess

[mail function]
mail.log = "C:\xampp\htdocs\rep\repmail.log"
chuckluttor
 
Posts: 1
Joined: 22. August 2017 18:26
XAMPP version: v3.2.2
Operating System: windows 10 pro

Re: PHP.INI directory override NOT working

Postby efremmc2 » 25. August 2017 17:57

If you are using Windows, there is no sendmail.exe (Sendmail) application installed. You need to download one. Some are shareware, open source, or commercial products.

Here is one such link:
https://www.glob.com.au/sendmail/sendmail.zip?6a7cc2b9c1b35dd20c3f3a286517c5b5

or Search https://sourceforge.net

These are recommendation only and not liable if they work at all. Good luck. It easier to do in Linux or Unix environments.
efremmc2
 
Posts: 8
Joined: 25. August 2017 03:54
XAMPP version: 1.7.7
Operating System: Windows/Linux


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 75 guests