Posted by Michael Fesser on 06/17/07 21:46
..oO(gosha bine)
>William Gill wrote:
>>
>> Does anyone know of a simple method of testing php scripts that employ
>> mail() by simulating an smtp server and directing output to a text file
>> or to an installed text editor.
>
>I have the following in my php.ini
>
>sendmail_path = php -r
>"file_put_contents('c:/mail.log',file_get_contents('php://stdin'),FILE_APPEND);"
>
>this logs all emails sent via mail() to c:\mail.log
Nice idea ...
Micha
[Back to original message]
|