
17.05.2006, 13:08
|
|
Познающий
Регистрация: 31.03.2006
Сообщений: 58
Провел на форуме: 163249
Репутация:
1
|
|
Mail.php
Код:
<?
$to = $_POST["to"];
$subj = $_POST["subj"];
$mes = $_POST["mes"];
$from = $_POST["from"];
$head="Content-Type: text/plain;";
if mail($to, $subj, $mes, $from, $head);{
echo "Mail has been sended.";
} else {
echo "Mail was not sended.";
}
?>
form.php
Код:
<form method=post action="mail.php">
To:<input type=text name=email><br>
Subj:<input type=text name=subj><br>
From:<input type=text name=from><br>
<textarea cols=40 rows=10 name=mess>
</textarea><br>
<input type=submit name=mail>
</form>
Странно но не осылается 
|
|
|