[UPHPU] mail()
Justin Giboney
giboney at giboneydesigns.com
Tue Jul 10 09:06:43 MDT 2007
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 = "graphics at westernbotanicals.com";
$subject = "Test mail";
$message = "Hello! This is a simple email messages.";
$from = "giboney at giboneydesigns.com";
$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
More information about the UPHPU
mailing list