<< back | print

mailer.html (file #1)

function check()
var email=document.form1.email.value, betreff=document.form1.betreff.value, text=document.form1.text.value;
var cemail="",cbetreff="",ctext="";
if (email!="")
if (document.form1.email.value.indexOf('@',0)==-1 || document.form1.email.value.indexOf('.',0)==-1)
cemail="the e-mail adress is NOT right! (name@domain.xx)\n";
var cemail="write your e-mail adress! (or something else)\n";
if (betreff=="")
var cbetreff="write a subject name!\n";
if (text=="")
var ctext="please write a text!\n";
if (cemail!="" || cbetreff!="" || ctext!="")
{ alert(cemail+cbetreff+ctext)
return false; }
return true;
<form ACTION="sendmail.php3" METHOD="GET" name="form1" onSubmit="return check()">
<table border="0" width="450" bgcolor="white" cellspacing="0" cellpadding="0">
<td width=100% bgcolor="white">
To :<BR><input type="text" size="24" maxlength="100" name="mail"><br><!-- use this line to choose a adress or use line 14 in sendmail.php3-->
From:<BR><input type="text" size="24" maxlength="100" name="email"><br>
Subject:<BR><input type="text" size="24" maxlength="1000" name="betreff"><br>
Text:<BR><textarea name="text" rows="10" cols="50" WRAP="VIRTUAL"></TEXTAREA> </p>
<INPUT TYPE="submit" VALUE="Send & wait"> <INPUT TYPE="reset" VALUE="clear">

sendmail.php3 (file #2)

var tt=0;
function anf()
{ if (tt!=0)
tt++; }
setTimeout("anf()", 5000);

//$mail="your-name@domain.net"; //use this line or choose a adress (line 29 in mail.html)
$vtext="Your mail is arrived to $mail.";
$bestaetigung="...Mail arrived...";
mail($mail,$betreff,$text,"From: ".$email);
mail($email,$bestaetigung,$vtext,"From: ".$mail);

<?echo "Thanks...<BR>sending to ",$mail," ";?>