Hey Leute,
Ich hab ein Kontakt Formular auf meiner Homepage eingebaut, doch die E-Mails kommen nicht in meinem Postfach an, wenn Leute mir via des Formulars eine Mail senden.
Hier der Code:
PHP
<?php
/* ---------------------------
php and flash contact form.
by www.MacromediaHelp.com
---------------------------
Note: most servers require that one of the emails (sender or receiver) to be an email hosted by same server,
so make sure your email (on last line of this file) is one hosted on same server.
--------------------------- */
// read the variables form the string, (this is not needed with some servers).
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];
$sender = $_REQUEST['sender'];
// include sender IP in the message.
$full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
$message= $full_message;
// remove the backslashes that normally appears when entering " or '
$message = stripslashes($message);
$subject = stripslashes($subject);
$sender = stripslashes($sender);
// add a prefix in the subject line so that you know the email was sent by online form
$subject = "Contact form ". $subject;
// send the email, make sure you replace email@yourserver.com with your email address
if(isset($message) and isset($subject) and isset($sender)){
mail("info@wer-weiß.com", $subject, $message, "From: $sender");
}
?>
Alles anzeigen
Die E-mail habe ich schon geändert, doch es funktioniert nicht.
Wäre top, wenn jemand eine Ahnung hat.
Liebe Grüße