Hallo,
ich bin eine gnadenlose Anfängerin was php angeht und benutze nun für Formular folgendes Script.
formmail.php4
<?php
$fmtResponse= implode("", file("response.htt"));
$fmtMail= implode("", file("mail.htt"));
foreach($HTTP_POST_VARS as $key=> $val) {
$fmtResponse= str_replace("<$key>", $val, $fmtResponse);
$fmtMail= str_replace("<$key>", $val, $fmtMail);
}
if ($HTTP_POST_VARS["access"] == "irregeheim") {
mail($HTTP_POST_VARS["recipient"], $HTTP_POST_VARS["subject"], $fmtMail);
}
echo $fmtResponse;
?>
Folgendes habe ich so in meinem Formular im Quellquode drinstehen.
[..]
<form action="formmail.php4" method="POST">
<input type="hidden" name="recipient"
value="info@puretec.de"> <input type="hidden" name="subject" value="Kontaktformular">
<input type="hidden" name="access" value="irregeheim">
<input type="textarea" name="Eingabe" wrap="physical" cols="60" rows="20">
<input type="submit" value="Abschicken">
</form>
[..]
und dies ist meine mail.htt:
mail.htt
Hallo, aus dem Kontaktformular kam folgende Eingabe:
<Eingabe>
Meine Fragen nun: wie kann ich diese E-Mail als html-E-Mail anlegen? WAS muss ich dazu WO eintragen?
Vielen Dank für Eure Hilfe,
Gruß Aline