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/h tdocs/inte rface/mail test.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
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/h
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
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??
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
How can you accept the answer if you dont know what to do about it ?????????
JD
ASKER
Because it is my first time to use this experts-exchange forum
so I don't know the instructions using this
so I don't know the instructions using this
ASKER
Because it is my first time to use this experts-exchange forum
so I don't know the instructions using this
so I don't know the instructions using this
that would be better option then ursing direct mail option..
LK