Page 1 of 1

mail() func. question

Posted: Sun Jul 28, 2002 10:11 am
by sky-born
I have just installed latest version of php, but i got an error like this: "mail() is not supported in current php release". Who can suggest me something? Thanks.

Posted: Mon Jul 29, 2002 4:56 pm
by gnu2php
Could you provide a little more info? Such as which Operating System you are trying it on, and which version of PHP (I assume 4.2.1) you're using.

Also, it would be helpful if you could give some sample code.

Posted: Tue Jul 30, 2002 2:24 am
by sky-born
os - linux 2.4.9-31, php 4.2.1
code:
mail($email,$subject,$sendmessage,"From: \"$fromuser\" <$fromemail>");

error:
Warning: mail() is not supported in this PHP build in /home/www/lalala/html/lalala.php on line xxx

Posted: Tue Jul 30, 2002 5:38 am
by gnu2php
Have you checked your php.ini file to make sure the settings under "[mail function]" are configured correctly?

Also, I found a few links at Google that you might want to check out:

http://forums.itrc.hp.com/cm/QuestionAn ... 8c,00.html

http://lists.openna.com/archives-openna ... 00016.html

http://www.phpbuilder.com/forum/read.ph ... ead=106049

Posted: Wed Jul 31, 2002 5:24 am
by sky-born
ok, thanks