Ich möchte ein HTML-Email verschicken. Wenn 
ich es von meinem Rechner über localhost mache
funktioniert das auch. Nur nicht vom Server aus, da
wird das ganze Mail als Text versendet.
Ich habe folgende Einträge im PHP-Script:
----------------------------------------------------------------------------
$to = "mm@meinemail.de";
$subject = "Eine neue Bestellung ist eingetroffen: Nr: $bestellid";
$xtra = "From: $email\r\n";
$xtra .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n";
$xtra .= "MIME-Version: 1.0\r\n";
$xtra .= "X-Mailer: PHP ". phpversion();
$xtra .= "<html>\n<head>\n<title>Bestellung</title>\r\n";
$xtra .= "<style type='text/css'>\r\n";
$xtra .= "body {background-color:white;font-family:arial;color:black;font-size:8pt;}\r\n";
$xtra .= "p,td,a {font-family:arial;color:black;font-size:8pt;}\r\n";
$xtra .= "a {color:darkblue; }\r\n";
$xtra .= "table {width:100%;}\r\n";
$xtra .= "th {font-family:arial;color:black;font-size:10pt;font-weight:bold;text-align:left;border:0px;solid black; border-bottom:1px solid black;}\r\n";
$xtra .= "</style>\n</head>\r\n";
$xtra .= "<body>\r\n";
$xtra .= "</body>\r\n";
$xtra .= "</html>\r\n";
mail($to,$subject,$message,$xtra);
------------------------------------------------------------------------------
In $message ist dann der Inhalt. (etwas gekürzt).
$message = "<p>Vielen Dank für ihre Bestellung !</p>\n
<p>Eine neue Bestellung ist eingetroffen !</p>
<p>Die Bestell - ID ist: <b>$bestellid</b></p>
<table summary='Tabelle' border='0' cellpadding='2' cellspacing='5'>
<tr><th colspan='2'>Rechnungsanschrift und Lieferanschrift:</th></tr>
<tr><td nowrap>Nachname:</td><td>$name</td></tr>
<tr><td nowrap>Vorname:</td><td style='width:100%'>$vorname</td></tr>
<tr><td nowrap>Straße:</td><td>$strasse</td></tr>
<tr><td nowrap>PLZ - Ort:</td><td>$plz - $wohnort</td></tr>
<tr><td nowrap>Email:</td><td>$email</td></tr>
<tr><td colspan='2' style='border-top:1px solid black;'>   </td></tr>
</table>";
Mach ich hier etwas falsch oder läuft das bei Puretec etwas anderes?
Gruß Ingo
					ich es von meinem Rechner über localhost mache
funktioniert das auch. Nur nicht vom Server aus, da
wird das ganze Mail als Text versendet.
Ich habe folgende Einträge im PHP-Script:
----------------------------------------------------------------------------
$to = "mm@meinemail.de";
$subject = "Eine neue Bestellung ist eingetroffen: Nr: $bestellid";
$xtra = "From: $email\r\n";
$xtra .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n";
$xtra .= "MIME-Version: 1.0\r\n";
$xtra .= "X-Mailer: PHP ". phpversion();
$xtra .= "<html>\n<head>\n<title>Bestellung</title>\r\n";
$xtra .= "<style type='text/css'>\r\n";
$xtra .= "body {background-color:white;font-family:arial;color:black;font-size:8pt;}\r\n";
$xtra .= "p,td,a {font-family:arial;color:black;font-size:8pt;}\r\n";
$xtra .= "a {color:darkblue; }\r\n";
$xtra .= "table {width:100%;}\r\n";
$xtra .= "th {font-family:arial;color:black;font-size:10pt;font-weight:bold;text-align:left;border:0px;solid black; border-bottom:1px solid black;}\r\n";
$xtra .= "</style>\n</head>\r\n";
$xtra .= "<body>\r\n";
$xtra .= "</body>\r\n";
$xtra .= "</html>\r\n";
mail($to,$subject,$message,$xtra);
------------------------------------------------------------------------------
In $message ist dann der Inhalt. (etwas gekürzt).
$message = "<p>Vielen Dank für ihre Bestellung !</p>\n
<p>Eine neue Bestellung ist eingetroffen !</p>
<p>Die Bestell - ID ist: <b>$bestellid</b></p>
<table summary='Tabelle' border='0' cellpadding='2' cellspacing='5'>
<tr><th colspan='2'>Rechnungsanschrift und Lieferanschrift:</th></tr>
<tr><td nowrap>Nachname:</td><td>$name</td></tr>
<tr><td nowrap>Vorname:</td><td style='width:100%'>$vorname</td></tr>
<tr><td nowrap>Straße:</td><td>$strasse</td></tr>
<tr><td nowrap>PLZ - Ort:</td><td>$plz - $wohnort</td></tr>
<tr><td nowrap>Email:</td><td>$email</td></tr>
<tr><td colspan='2' style='border-top:1px solid black;'>   </td></tr>
</table>";
Mach ich hier etwas falsch oder läuft das bei Puretec etwas anderes?
Gruß Ingo
 
          
 Problem mit HTML-Email bei Puretec
									
									
									Problem mit HTML-Email bei Puretec