mail() func. question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sky-born
Forum Newbie
Posts: 3
Joined: Sun Jul 28, 2002 10:11 am
Location: Donetsk, Ukraine

mail() func. question

Post 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.
gnu2php
Forum Contributor
Posts: 122
Joined: Thu Jul 11, 2002 2:53 am

Post 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.
sky-born
Forum Newbie
Posts: 3
Joined: Sun Jul 28, 2002 10:11 am
Location: Donetsk, Ukraine

Post 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
gnu2php
Forum Contributor
Posts: 122
Joined: Thu Jul 11, 2002 2:53 am

Post 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
sky-born
Forum Newbie
Posts: 3
Joined: Sun Jul 28, 2002 10:11 am
Location: Donetsk, Ukraine

Post by sky-born »

ok, thanks
Post Reply