Незнайка


Зарегистрирован: Nov 2001
Место проживания: Mосква
Публикаций: 539
Статус:  |
Cоздай любой файл с расширением *.php и вставь код.
PHP:
<html><head><title>PHP Mail Tester</title></head>
<body>
<?php
extract($HTTP_GET_VARS);
if ($address=="") {
echo "<form action=\"mailtest.php\" method=get><p>Address to email: <input type=text name=address></p>";
echo "<p><input type=submit value=\"Send email\"></p>";
} else {
$subject = "Testing mail() function";
$message = "This is a test email";
mail($address,$subject,$message,"From: \"Mail Test\" <$address>");
echo "<p>Mail sent. Were any errors shown? If there were, mail is probably not set up correctly.</p>";
}
?>
</body>
</html>
__________________
Functional Upgraded Construct Kernel for Offensive and Faultless Fighting
Сообщить модератору об этом сообщении | Предупреждение | IP: определен
|