Using PHP's mail() function in a chroot environment
If you need to use PHP's mail() function in a *nix chroot environment then you will need to make sure the your PHP installation can access /bin/sh. Otherwise the mail() function will fail as it runs sendmail via a shell.
It is best to use busybox for this as it is much smaller than bash etc.
Last updated: 18/03/2012