email and PHP

I want to ask the question about sending email in php. I am using a Mandrake Linux
But it does not function well
and display the error:

Warning: mail() is not supported in this PHP build in /usr/local/apache_1.3.22/htdocs/interface/mailtest.php on line 13


Is it there is something command I need to set?? Then I don't know what is the command and where to carry out??

and is it if i want to use php code to send email, is it just simply write down the following code:

<?
mail("email@address", "Subject", "content");
?>

then when the user access those php will automatically send email????


Thanks a lot
sandysansanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
harwantgrewalConnect With a Mentor Commented:
You must check your ini file to see the configuarion of the mail the file name is php.ini

Harry
0
 
lokeshvCommented:
Send mail through SMTP class...

that would be better option then ursing direct mail option..



LK
0
 
dkjariwalaCommented:
mail() function was disabled when PHP was compiled.

In that case you can use phpmailer. http://phpmailer.sourceforge.net to send mail.

It can work with or without mail() function and it can directly talk to SMTP server. It has even support for Authenticated SMTP.

That is just part of story,
You can do much more, like HTML Mail, bulk mailing,attachments.....

Check it out,
JD
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
sandysansanAuthor Commented:
but I cannot find the php.ini in the server
and I just find only php.ini-dist and php.ini-optimized

And then what should I do??
0
 
dkjariwalaCommented:
huh ?
How can you accept the answer if you dont know what to do about it ?????????



JD
0
 
sandysansanAuthor Commented:
Because it is my first time to use this experts-exchange forum
so I don't know the instructions using this
0
 
sandysansanAuthor Commented:
Because it is my first time to use this experts-exchange forum
so I don't know the instructions using this
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.