|
Posted by Michael Pichler on 04/05/06 15:33
Christopher Cheng schrieb:
> I have installed php on a Redhat FC2 machine. With the following
> script, I am able to email with
> "php mailtest.php"
> but when I put it in the apache server with the php installed, I could
> not email anymore.
>
> <?
> $body = "Someone submitted the following information from our online
> form";
> mail("myemailaddress@hotmail.com", "Our Online Form", $body);
> echo "email sent successfully!"
> ?>
>
> Is there something wrong with my php or apache settings?
Your code seems to be correct.
What error message do you get?
More info on the mail function:
http://php.net/manual/en/ref.mail.php
cheers
michael
Navigation:
[Reply to this message]
|