61 lines
1.3 KiB
PHP
61 lines
1.3 KiB
PHP
<?php
|
|
|
|
if (isset($_POST['submit'])) {
|
|
if ($_POST['password'] != "feld.Aist4") {
|
|
die("wrong password");
|
|
}
|
|
$to = $_POST['recipient'];
|
|
$subject = $_POST['subject'];
|
|
$message = $_POST['message'];
|
|
$headers = "From: Martin Lenzelbauer <martin.lenzelbauer@bruckmuehle.at>";
|
|
mail($to, $subject, $message, $headers);
|
|
die("mail sent");
|
|
}
|
|
|
|
?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
<meta name="robots" content="noindex" />
|
|
<title>Webmail</title>
|
|
<style type="text/css">
|
|
input{
|
|
width:300px;
|
|
}
|
|
textarea{
|
|
width:600px;
|
|
height:400px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<form action="webmail.php" method="post">
|
|
<table>
|
|
<tr>
|
|
<th>Passwort:</th>
|
|
<td><input type="password" name="password" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Empfänger:</th>
|
|
<td><input type="text" name="recipient" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Betreff:</th>
|
|
<td><input type="text" name="subject" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th>Nachricht:</th>
|
|
<td><textarea name="message"></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td><input type="submit" name="submit" value="senden" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
|
|
</body>
|
|
</html>
|