lur koden af:
http://scripts.gonza.dk/send_mail/<?php
$to = $_POST['tomail'];
if (isset($_POST['mailbody'])){
$from = "From: Somebody <test@domæne.dk>";
$subject = "Comments";
$to = $_POST['tomail'];
$message = $_POST['mailbody'];
mail($to,$subject,$message,$from);
echo "Du har hermed sendt oplysningerne til IT-Afd";
}
echo "
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">
<html>
<head>
<title>Send mail</title>
<meta name=\"generator\" content=\"TSW WebCoder\">
</head>
<body>
<form action='".$_SERVER["php_self"]."' method='post'>
Til <input type='text' name='tomail'><br>
Besked <input type='text' name='mailbody'><br>
<input type='submit' value='Send mail'>
</form>";
?>