|
i have yet to work with the mail function in php and don't really have a clue whats going on. i tried this simple script. it outputs message successfully sent, but i get nothing at my gmail account. i'm very sure i missing a few steps??? what should a working script look like?? new to php
Thanks,
Taylor
<?php
$to = "th71852@gmail.com";
$subject = "Hi!";
$body = "Hi, How are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
|