Is there anything special that a server needs to have to run the mail () function?
I have apache running on a mac (10.4.10) with no mail/smtp.

this code (from various internet sources), seems to work, but I never get a message

<?php
$to = "[EMAIL PROTECTED]";
$subject = "Test mail";
$message = "Hello! This is a simple email messages.";
$from = "[EMAIL PROTECTED]";
$headers = "From: $from";
if(mail($to,$subject,$message,$headers)) {
echo "An e-mail was sent to $to with the subject: $subject";
} else {
echo "There was a problem sending the mail. Check your code and make sure that the e-mail address $to is valid";
}
?>


Justin Giboney




_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to