John Williams wrote: >I'm having a problem getting the mail() function working on php 4.2.2. > >I get the error message: >Warning: mail() is not supported in this PHP build > >I'm running Solaris 8 and have set the symlink for sendmail. I have >recompiled PHP, set the php.ini to point to sendmail and restarted the >web server. > >; For Unix only. >;You may supply arguments as well (default: 'sendmail -t -i'). >sendmail_path = "/usr/sbin/sendmail -t -i" > >(I've tried it with and without quotes) > > >Still no luck... > >Any ideas? > >Thanks! > >John
Solved it by removing the PHP directory and untarring it again. When I rebuilt it the 1st time there was no config.cache so I assumed there was no cache from the previous configure. I think this was because I had to rm configure and do a ./buildconf and it named the cache file something else. Oh well, long story short. Make a symlink so sendmail is in the path (otherwise PHP will disable sendmail support), and with the cache removed recompile PHP. After that it works fine. Tks to all who sent advice! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php