Link to home
Start Free TrialLog in
Avatar of sandysansan
sandysansan

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of harwantgrewal
harwantgrewal
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lokeshv
lokeshv

Send mail through SMTP class...

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



LK
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
Avatar of sandysansan

ASKER

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??
huh ?
How can you accept the answer if you dont know what to do about it ?????????



JD
Because it is my first time to use this experts-exchange forum
so I don't know the instructions using this
Because it is my first time to use this experts-exchange forum
so I don't know the instructions using this