Hello
When trying to send mail inside my PHP script I receive the following error:
Warning: mail() is not supported in this PHP build
What is the reason ? Compile errors ? Or my Host has disabled access to PHP
mail() function ?
How can I solve the problem ? Is there any alternatives to using mail()
function that may work?
Regards,
Mac
ffeingol
07-09-2001, 08:08 AM
Mac,
Is this PHP on Unix or Windows?
Frank
Frank
It is a linux 7.1 and PHP 4.
Regards, Mac
ffeingol
07-09-2001, 09:55 AM
Mac,
Can you put together a little phpinfo page (i.e <?php phpinfo() ?>) and check if php knows about sendmail on your server? It should show up as sendmail_path
.
In looking at the source code for PHP, it looks like the only reason that mail would not be included is if the config program could not find sendmail.
Frank
Frank
Thank you for your help. phpinfo was the first step I did yesterday but I was not able to recognize that it is a config error or it is on purpose.
Anyway results are these:
sendmail_from (local)no value (Master)no value
sendmail_path (local) -t -i (master) -t -i
There are also other (no value) fields in phpinfo
upload_tmp_dir no value no value
user_dir no value no value
variables_order no value no value
And many others too.
If you want to see phpinfo yourself, please see :
http://www.onlineprogrammer.org/phpinfo.php
Regards,
Mac
ffeingol
07-09-2001, 11:18 AM
Mac,
Your host must have sendmail in a non-standard location. PHP will look in the following directories for sendmail:
$PATH:/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
It looks like you can tell php where sendmail is when you configure it, but I've never done that, so I can't tell you how :bawling:
Frank