Solved

email and PHP

Posted on 2002-04-30
7
213 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

Easy Project Management (No User Manual Required)

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now