I have made a script to send emails in PHP:
But when i load the page it says & i dont recive an email:
Message successfully sent!"); } else { echo("
Message delivery failed...
"); } ?>
where am i going wrong? The script works on other hosts...
PHP:
<?php
$to = "XXX@bigpond.com";
$subject = "request";
$body = $_GET["email"];
if (mail($to, $subject, $body)) {
echo("<br/><br/>Message successfully sent!</p>");
} else {
echo("<br/><br/>Message delivery failed...</p>");
}
?>
But when i load the page it says & i dont recive an email:
Message successfully sent!"); } else { echo("
Message delivery failed...
"); } ?>
where am i going wrong? The script works on other hosts...