• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

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
0
sandysansan
Asked:
sandysansan
1 Solution
 
harwantgrewalCommented:
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now