Solved

email and PHP

Posted on 2002-04-30
7
245 Views
Last Modified: 2006-11-17
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
Comment
Question by:sandysansan
7 Comments
 
LVL 5

Accepted Solution

by:
harwantgrewal earned 50 total points
ID: 6981512
You must check your ini file to see the configuarion of the mail the file name is php.ini

Harry
0
 
LVL 4

Expert Comment

by:lokeshv
ID: 6982645
Send mail through SMTP class...

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



LK
0
 
LVL 5

Expert Comment

by:dkjariwala
ID: 6982880
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:sandysansan
ID: 6983446
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
 
LVL 5

Expert Comment

by:dkjariwala
ID: 6983481
huh ?
How can you accept the answer if you dont know what to do about it ?????????



JD
0
 

Author Comment

by:sandysansan
ID: 6983500
Because it is my first time to use this experts-exchange forum
so I don't know the instructions using this
0
 

Author Comment

by:sandysansan
ID: 6983512
Because it is my first time to use this experts-exchange forum
so I don't know the instructions using this
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question