Never coded in php until today. The following code:
<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
produces the following output:
Message successfully sent!
'); } else { echo("
Message delivery failed...
"); } ?>
I grabbed this code off the web. What am I missing?
<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
produces the following output:
Message successfully sent!
'); } else { echo("
Message delivery failed...
"); } ?>
I grabbed this code off the web. What am I missing?