| 
	
 | 
 Posted by William Gill on 06/17/07 23:51 
gosha bine wrote: 
> William Gill wrote: 
>> Looks good, but it causes a parsing error on WinXP.  I may use it on  
>> my Linux boxes though. 
>  
> Works just fine for me. Make sure you've copied it properly. 
 
Fixing the cut and paste error, and commenting out the "SMTP =" and  
'smtp_port =' entries fixed the parse error.  Now Xp is complaining  
about php not being a recognized command when it's called from inside  
Apache. 
 
I'll keep fiddling with it. 
 
> Also, please do not top-post. Post your replies below the quoted text. 
 
Mea culpa. 
 
>  
>  
>> 
>> Bill 
>> 
>> gosha bine wrote: 
>>> William Gill wrote: 
>>>> My development machine (WinXP, Apache 2.2.4) does not have an smtp  
>>>> server, and I don't really want to install one if I can help it. 
>>>> 
>>>> 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 
>>> 
>>> 
>  
>
 
  
Navigation:
[Reply to this message] 
 |