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"