sorry für die verspätung, hier ein kleines mailformular:
Code:
<?php
$set_mail=$HTTP_POST_VARS['set_mail'];
$an="mailadresse@dem.php.server.bekannt.com";
//--------entweder mailen oder mailformular---------------------------------------------------
if($set_mail==1) {
// mail an den webmaster
mail($an, $betr, $nachricht,"From:".$abs);
// Empfangsbestätigung an den user
//$nachricht= "Sie haben eine Kontaktaufnahme zu Knuffelhaeschen vollzogen,
// dabei haben Sie folgende NAchricht übersendet:<br><br>".$nachricht;
mail($abs, $betr, $nachricht, "From:".$an);
echo '<p align=\"center\">Vielen Dank, Ihre E-Mail wurde an den Webmaster weitergeleitet. Wir werden Ihre Anfrage so schnell wie möglich bearbeiten.</p>';
$set_mail=0;
} else {
?>
<body onload="setfocus_form_mail()">
<form name=form_mail action=<?php echo $scrname; ?> method=post onSubmit="return chk_form_mail()">
<table class=cont style="width:50%">
<tr>
<td rowspan =5 width=20> </td>
<td><?php echo $co_fld_to; ?></td>
<td>Webmaster</td>
</tr>
<tr>
<td><?php echo $co_fld_from; ?></td>
<td><input type=text size=30 name=abs></td>
</tr>
<tr>
<td width=50><?php echo $co_fld_subject; ?></td>
<td><input type=text name=betr size=30></td>
</tr>
<tr>
<td style="vertical-align:top"><br><?php echo $co_fld_message; ?></td>
<td><textarea name=nachricht cols=30 rows=10></textarea></td>
</tr>
<tr>
<td colspan=2 align=center>
<input type=hidden value=1 name=set_mail>
<input type=submit class=button value="<?php echo $co_fld_send; ?>">
</td>
</tr>
</table>
</form>
<?php
}
?> muss nur dem host, auf dem das ding läuft ein smtp server bekannt sein