On 2009/08/04 10:47, Jean-Frangois SIMON wrote: > Would the use of mini_sendmail-chroot help in any way ?
This does the same job as femail (which I prefer). > 2009/8/3 Jean-Frangois SIMON <jfsimon1...@gmail.com> > > > Many thanks. > > > > 2009/8/3 Stuart Henderson <s...@spacehopper.org> > > > > On 2009-08-02, jean-francois <jfsimon1...@gmail.com> wrote: > >> > What would be the simplest and safest way in order to give php the > >> > possibility to transfert mails via the php mail command ? > >> > >> Assuming you're using chroot: you need to install some things under > >> /var/www: > >> some mail-relay program (I'd recommend femail), and /bin/sh (yes, really. > >> php > >> uses popen for this). > >> > >> If you don't absolutely need the mail() command there are various PHP > >> library functions to send mail by SMTP which don't need the shell.