Click to See Complete Forum and Search --> : its no sendin'


luke0
12-02-2003, 05:35 AM
its not sendin' my e-mails why



<?PHP mail("lukes_trains@hotmail.com", " aok cheats", "message body", "additional_headers"); ?>

<form action="mailer.php" method="post">
Name: <input type="text" name="name">
<p>
Email: <input type="text" name="email">
<p>
Message: <textarea name="message">
type your text here
</textarea>
<input type="submit" name="submit" value="Submit Form">
</form>




i made it myseft

look at the page

http://www.angelfire.com/hero/aok0/junk.html

aoeguy
12-02-2003, 05:51 AM
Errrm...
You need to define the variables.

junk.html:

<form action="mailer.php" method="post">
Name: <input type="text" name="name">
<p>
Email: <input type="text" name="email">
<p>
<input type="submit" name="submit" value="Submit Form">
</form>

mailer.php:

<?php
$email = $_POST["email"];
$body = $_POST["mesage"];
$name = $_POST["name"]
mail($email,"Age of Kings Cheats",$body);

?>

dunno what u want with additional_headers. Dont need message

dreamcatcher
12-02-2003, 11:51 AM
To use simple headers just do:


mail($email,"Age of Kings Cheats",$body, "From:$name<$email>");