Email DarstellungsProblem GMX
Verfasst: 29.08.2006 19:25
Hi,
habe folgendes Problem, habe ein Mail-Script gecodet das html mails verschickt, klappt auch alles wunderbar nur aus irgend einem Grund können GMX Mailbox-Besitzer sich die mails nicht angucken, hier mal mein Quelltext und die Mail wie sie bei gmx ankommt:
Habe alles was bissl intern ist durch xxxxx ersetzt 
habe folgendes Problem, habe ein Mail-Script gecodet das html mails verschickt, klappt auch alles wunderbar nur aus irgend einem Grund können GMX Mailbox-Besitzer sich die mails nicht angucken, hier mal mein Quelltext und die Mail wie sie bei gmx ankommt:
Code: Alles auswählen
$_POST[text]=str_replace("\n","<br>",$_POST[text]);
$newslettersql=mysql_query("SELECT * FROM `bewerber` WHERE `newsletter` = 1");
while($newsletter=mysql_fetch_array($newslettersql))
{
$empfaengername="$newsletter[name] $newsletter[vorname]";
$empfaengermail="$newsletter[email]";
$empfaenger="$empfaengername <$empfaengermail>";
$absendername="XXXXXXX";
$absendermail="xxx@xxxxxx.de";
//Sendemodul
$betreffzeile="$_POST[betreff]";
$nachricht="
<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd>
<html xmlns=http://www.w3.org/1999/xhtml xml:lang=en>
<head>
<meta http-equiv=content-type content=application/xhtml+xml; charset=utf-8 />
<style>
a, a:visited { color:#0860A8; text-decoration:none; }
a:hover { color:#0860A8; text-decoration:underline; }
.normal { font-family:verdana, sans-serif; color:#7F7E7E; font-size:10px; letter-spacing: -1px; }
a.normal { text-decoration: none; }
a.normal:hover{ color : #7F7E7E; text-decoration:underline;}
a.normal:link { color : #7F7E7E; }
a.normal:visited{ color : #7F7E7E; }
</style></head><body>
<span class=normal>
$_POST[text]
</span>
</body></html>
";
// Header
$header = 'MIME-Version: 1.0' . "\r\n";
$header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$header .= 'From:' . "$absendername <$_POSTabsendermail> \r\n";
// Versand
mail($empfaenger, $betreffzeile, $nachricht, $header);
Code: Alles auswählen
From - Tue Aug 29 01:54:27 2006
X-Account-Key: account5
X-UIDL: ed91dddb535a2bd37db4eca925871fe4
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
Return-Path: <wwwrun@xx.xxxxxxxx.de>
X-Flags: 0000
Delivered-To: GMX delivery to xxxxxx@gmx.de
Received: (qmail invoked by alias); 28 Aug 2006 23:54:16 -0000
Received: from xxxxxx.xxxxxxx.com (EHLO xxxxx.xxxx.com) [xx.13.135.xxx]
by mx0.gmx.net (mx079) with SMTP; 29 Aug 2006 01:54:16 +0200
Received: by xxxxxx.xxxxxx.com (Postfix, from userid 30)
id 3375D6CD55; Tue, 29 Aug 2006 01:54:16 +0200 (CEST)
To: testmail html <xxxxx@gmx.de>
Subject: Testmail alle gmx
MIME-Version: 1.0
Date: Tue, 29 Aug 2006 01:54:17 +0200
Message-ID: <20060828235417.7323gmx1@mx079.gmx.net>
X-GMX-Antivirus: -1 (not scanned, may not use virus scanner)
X-GMX-Antispam: 0 (Mail was not recognized as spam)
X-GMX-UID: HrTAcBpUTXs97oY9gGQ5MEBKRzdyMoM7
Content-type: text/html; charset=iso-8859-1
From:xxxxx <xxx@xxxxxx.de>
Message-Id: <20060828235416.3375D6CD55@xxxxx.xxxxx.com>
Date: Tue, 29 Aug 2006 01:54:16 +0200 (CEST)
<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd>
<html xmlns=http://www.w3.org/1999/xhtml xml:lang=en>
<head>
<meta http-equiv=content-type content=application/xhtml+xml; charset=utf-8 />
<style>
a, a:visited { color:#0860A8; text-decoration:none; }
a:hover { color:#0860A8; text-decoration:underline; }
.normal { font-family:verdana, sans-serif; color:#7F7E7E; font-size:10px; letter-spacing: -1px; }
a.normal { text-decoration: none; }
a.normal:hover{ color : #7F7E7E; text-decoration:underline;}
a.normal:link { color : #7F7E7E; }
a.normal:visited{ color : #7F7E7E; }
</style></head><body>
<span class=normal>
</span>
</body></html>
