ok -- I know sending mail works on this particular server because I tested it using -
This script
So now I'm trying to do this --
Basically, I was just trying to modify the original code (top code) to send my post vars to me.
So I attempted, I failed,
Any help?
Thanks guys,
Khan
This script
Code:
<?php
$to = "enduser@aol.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body))
{
echo("<p>Message sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
?>
So now I'm trying to do this --
Code:
<html>
<?php echo($_POST['name']); ?> <?php echo($_POST['birth']); ?>
<?php
if ($submit == 1 )
$to = "enduser@aol.com";
$subject = $_POST['name'];
$body = $_POST['birth'];
if (mail($to, $subject, $body))
{
echo("<p>Message sent!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
?>
</html>
Basically, I was just trying to modify the original code (top code) to send my post vars to me.
So I attempted, I failed,
Any help?
Thanks guys,
Khan