Re: [PHP-DEV] making mail() funtion work without sendmail on UNIXsystems

2001-10-19 Thread Rasmus Lerdorf
I am really not a big fan of putting smtp code into PHP on UNIX. The whole philosophy of UNIX is to have a collection of small specialized tools that work together instead of one mammoth tool. Which UNIX system does not have the ability to send mail? We really should not be re-inventing every

Re: [PHP-DEV] making mail() funtion work without sendmail on UNIXsystems

2001-10-19 Thread Rasmus Lerdorf
On Fri, 19 Oct 2001, Hartmut Holzgraefe wrote: Rasmus Lerdorf wrote: I am really not a big fan of putting smtp code into PHP on UNIX. The whole philosophy of UNIX is to have a collection of small specialized tools that work together instead of one mammoth tool. Which UNIX system

Re: [PHP-DEV] making mail() funtion work without sendmail on UNIXsystems

2001-10-19 Thread Rasmus Lerdorf
Same here. I didn't change anything for Windows (except moving the file), since I haven't got a Windows dev system. The implementation could certainly be improved, that would be much easier for me to do by also using it for UNIX. While I do agree to some extent with Rasmus, the changes are

Re: [PHP-DEV] making mail() funtion work without sendmail on UNIXsystems

2001-10-19 Thread Rasmus Lerdorf
You completely lose the most important feature. A non-blocking mail() call which queues the message. Having a web app wait on an smtp delivery is crap. Mail should be delivered out of band. non-blocking? mail() uses popen() and has to wait for the execution of /usr/lib/sendmail to

Re: [PHP-DEV] making mail() funtion work without sendmail on UNIXsystems

2001-10-19 Thread Rasmus Lerdorf
Don't you think that on some systems (probably with high loads) it might be much more efficient to use SMTP than spanning mail via fork()/exec()? Only in the case of a local smtpd. But yes, in that scenario I agree. -Rasmus -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] making mail() funtion work without sendmail on UNIXsystems

2001-10-19 Thread Joao Prado Maia
On Fri, 19 Oct 2001, Rasmus Lerdorf wrote: Don't you think that on some systems (probably with high loads) it might be much more efficient to use SMTP than spanning mail via fork()/exec()? Only in the case of a local smtpd. But yes, in that scenario I agree. I'm not at all on top of