Hallo Oesi,
hier nocheinmal das angepasste script
<?php
$vorname = preg_replace ( "/[^\w\d\s]/", " ", $HTTP_POST_VARS['vorname'], -1);
$name = preg_replace ( "/[^\w\d\s]/", " ", $HTTP_POST_VARS['name'], -1);
$email = preg_replace ( "/[^\w\d\s]/", " ", $HTTP_POST_VARS['email'], -1);
$strasse = preg_replace ( "/[^\w\d\s]/", " ", $HTTP_POST_VARS['strasse'], -1);
$wohnort = preg_replace ( "/[^\w\d\s]/", " ", $HTTP_POST_VARS['wohnort'], -1);
$subject = preg_replace ( "/[^\w\d\s]/", " ", $HTTP_POST_VARS['subject'], -1);
if ($vorname!="" AND $name!="" AND $email!="" AND $subject!="" ) {
$mailto ="info@meine adress.de";
$mailfrom ="info@meine adresse.de";
$body="Vorname: $vorname
Nachname: $name
Strasse: $strasse
PLZ/Ort: $wohnort
Email: $email
Betrifft: $subject";
$more = "From: $mailfrom\r\nContent-Type: text/plain";
mail($mailto, $subject, $body, $more);
header("location: danke.html");
}
else {
header("location: fehler.html");
}
?>
Verstehe nicht warum die Mail nicht verschickt wird?
Grüße
als Antwort auf: [#63416]