You are here: Re: test mail() on development machine w/o smtp server « PHP Programming Language « IT news, forums, messages
Re: test mail() on development machine w/o smtp server

Posted by William Gill on 06/23/07 17:47

William Gill wrote:
> OK forgive my ignorance, but this has been bugging me since you posted
> the solution. Could you explain the notation "php://stdin". I thought
> stdin was stdin, is there a way to differentiate?
>
> Again, forgive my ignorance.
>
> Bill
>

Never mind, I finally found the manual reference for input/output streams.


> 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
>>
>>

Thanks,

bill

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация