Hallo zusammen,
ich habe folgenden Mailscript:
	
Zu der Datei gehört noch eine Config die die E-Mail des Empfängers enthält.
Wenn ich den script auf meinen Server hochlade, ausfülle und auf senden gehe, dann kommt beim Empfänger zwar eine E-Mail an, aber es ist weder der Betreff, Absender, Absenderemail, text zu sehen.
Nur die IP + Datum, Zeit wird angezeigt.
Weiss jemand an was das liegt?
					ich habe folgenden Mailscript:
PHP-Code:
	
	
<title>Kontaktformular</title>
<STYLE TYPE="TEXT/CSS">
td {
font-size:10px; font-family: Verdana; }
th {
font-size:10px; font-family: Verdana; }
body {
font-family: Verdana; color:#4A4949; font-size:10px; }
a:link, A:visited  {
text-decoration: none; color:#3C3B3B; }
A:active, A:hover {
text-decoration: none; color:#A63E4A; }
select {
color: #7990A5; font-family: Verdana; font-size: 10px; border: 1px solid #003A74; background-color: #003A74}
input {
font-family: Verdana; font-size: 10px; color: #000000; border: 1px solid #000000; background-color: #FFFFFF}
#box {
font-family: Verdana; font-size: 10px; color: #000000; border: 0px solid #000000; background-color: #EFEFEF }
#textarea {
font-family: Verdana; font-size: 10px; color: #000000; border: 1px solid #000000; background-color: #FFFFFF }
</style>
<body style="background-color: #ffffff">
<div align="center">
<form method="POST" action="<?php $self ?>">
<table border="1" cellspacing="0" style="border-collapse: collapse" bgcolor="#F6F6F6" bordercolor="#CFCDCD" width="600" id="AutoNumber2" cellpadding="2">
<tr>
<td width="600" bgcolor="#F6F6F6"><p align="left"><b>Kontaktformular</b></p></td>
</tr>
<tr>
<td width="600" bgcolor="#FDFDFD">
<table border="0" width="100%" cellspacing="0" cellpadding="3">
        <tr>
                <td width="70">Name:</td>
                <td>
                <input type="text" name="name" size="27" style="color: #000000; font-family: Verdana; font-size: 8pt; border: 1px solid #CFCDCD; background-color: #FDFDFD"></td>
        </tr>
        <tr>
                <td width="70">eMail:</td>
                <td>
                <input type="text" name="email" size="27" style="color: #000000; font-family: Verdana; font-size: 8pt; border: 1px solid #CFCDCD; background-color: #FDFDFD"></td>
        </tr>
        <tr>
                <td width="70">Betreff:</td>
                <td>
                <input type="text" name="betreff" size="27" style="color: #000000; font-family: Verdana; font-size: 8pt; border: 1px solid #CFCDCD; background-color: #FDFDFD"></td>
        </tr>
        <tr>
                <td valign="top" width="70">Nachricht:</td>
                <td>
                <textarea rows="13" name="text" cols="72" style="color: #000000; font-family: Verdana; font-size: 8pt; border: 1px solid #CFCDCD; background-color: #FDFDFD"></textarea></td>
        </tr>
        <tr>
                <td width="70"> </td>
                <td>
                <input type="submit" value="Absenden" name="submit" style="font-family: Verdana; font-size: 8pt; color: #000000; border: 1px solid #CFCDCD; background-color: #FDFDFD">
                <input type="reset" value="Zurücksetzen" name="del" style="font-family: Verdana; font-size: 8pt; color: #000000; border: 1px solid #CFCDCD; background-color: #FDFDFD"></td>
        </tr>
</table>
</form>
</td>
</tr>
<tr>
<td width="600" bgcolor="#F6F6F6">
<p align="right"><a target="_blank" href="Link">
Name</a></td>
</tr>
</table>
<br>
<?php
include("config.php");
if (isset($_POST['submit'])) {
if (empty($_POST['name']))
$error[] = "Du musst einen Namen angeben!";
if (empty($_POST['email']))
$error[] = "Du musst eine eMail Adresse angeben!";
if(!preg_match("/[a-z0-9_-]+(.[a-z0-9_-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z].)+([a-z]{2,4}|museum)/i",$_POST['email']))
$error[] = "Deine eMail Adresse ist ungültig!";
if (empty($_POST['betreff']))
$error[] = "Du must einen Betreff angeben!";
if (empty($_POST['text']))
$error[] = "Du musst einen Text angeben!";
if (isset($error)) {
foreach ($error as $output) echo"<font color=\"#FF0000\"><b>" .$output . "</b></font><br>";
  } else {
   $ip = $_SERVER['REMOTE_ADDR'];
   $host = gethostbyaddr($ip);
   $browser = $HTTP_USER_AGENT;
   $tage = array(0=>"Sonntag",
                 1=>"Montag",
                 2=>"Dienstag",
                 3=>"Mittwoch",
                 4=>"Donnerstag",
                 5=>"Freitag",
                 6=>"Samstag");
   $monate = array(1=>"Januar",
                   2=>"Feber",
                   3=>"März",
                   4=>"April",
                   5=>"Mai",
                   6=>"Juni",
                   7=>"Juli",
                   8=>"August",
                   9=>"September",
                   10=>"Oktober",
                   11=>"November",
                   12=>"Dezember");
   $monat = $monate[date("n")];
   $named  = $tage[date("w")];
   $tag   = date("d");
   $jahr  = date("Y");
   $zeit = date("G:i");
$to = "$mailto";
$subject = "$betreff";
$headers = "From: $email";
$message = "Absender........: $name ($email)
Betreff.........: $betreff
Datum/Zeit......: $named, $tag.$monat $jahr / $zeit Uhr
Absender-IP.....: $ip
Absender-Host...: $host
Browser.........: $browser
Nachricht:
----------------------------------------------------------------------
$text
----------------------------------------------------------------------";
mail($to, $subject, $message, $headers);
echo"<font color=\"#FF0000\"><b>Die Email wurde erfolgreich versandt!</b></font>";
}}
?>
Wenn ich den script auf meinen Server hochlade, ausfülle und auf senden gehe, dann kommt beim Empfänger zwar eine E-Mail an, aber es ist weder der Betreff, Absender, Absenderemail, text zu sehen.
Nur die IP + Datum, Zeit wird angezeigt.
Weiss jemand an was das liegt?
EDIT: 
PHP-Tags sponsored by Kropff
          
 Moderatorin

							
						
							
						
							
						
Kommentar