jupp.s
09-11-2004, 16:34
Ich habe gerade unter codeschnipsel einen Thread gefunden, bei dem es um Mails geht, die je nach dem als TXT oder HTMl mail versendet werden (http://www.php-resource.de/forum/showthread.php?s=&threadid=46194&perpage=10&pagenumber=2).
Gibt es eine möglichket beides in eine mail zu packen, allerdings soll die mail nicht vordefiniert sein sondern über einen WYSIWYG-editor eingegeben werden, allerding so das sowohl HTML als auch TXT´enthalten sind? wie in diesem beispiel:
<HEADER>
Return-Path: <Webmaster@u-dream.de>
Received: xxxxx (xxxxx)
xxxx (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP xxx for <mail@u-dream.de>; Fri, 29 Oct 2004 09:07:51 +0200
Received: from mod (xxxx)
by xxxx (Postfix) with SMTP xxxx
for <mail@u-dream.de>; Fri, 29 Oct 2004 09:07:38 +0200 (MEST)
Message-ID: <xxxxxx>
From: "Webmaster" <Webmaster@netcologne.de>
To: <mail@u-dream.de>
Subject: mail02
Date: Fri, 29 Oct 2004 09:12:38 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0016_01C4BD97.6F6ECBE0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Spam-Status: No, hits=0.2 required=10.0
tests=HTML_60_70,HTML_MESSAGE
version=2.52
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.52 (1.174.2.8-2003-03-24-exp)
X-UIDL: f842c6e35061799a436644b093380e8d
Status: RO
</HEADER>
<MESSAGE>
This is a multi-part message in MIME format.
------=_NextPart_000_0016_01C4BD97.6F6ECBE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
testmail f=FCr mein mailsystem...
hallo hallo test ets
mail02 mit mehr text
------=_NextPart_000_0016_01C4BD97.6F6ECBE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>testmail f=FCr mein =
mailsystem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>hallo hallo test ets</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>mail02 mit mehr=20
text</FONT></DIV></DIV></BODY></HTML>
------=_NextPart_000_0016_01C4BD97.6F6ECBE0--
</MESSAGE>
Gibt es eine möglichket beides in eine mail zu packen, allerdings soll die mail nicht vordefiniert sein sondern über einen WYSIWYG-editor eingegeben werden, allerding so das sowohl HTML als auch TXT´enthalten sind? wie in diesem beispiel:
<HEADER>
Return-Path: <Webmaster@u-dream.de>
Received: xxxxx (xxxxx)
xxxx (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP xxx for <mail@u-dream.de>; Fri, 29 Oct 2004 09:07:51 +0200
Received: from mod (xxxx)
by xxxx (Postfix) with SMTP xxxx
for <mail@u-dream.de>; Fri, 29 Oct 2004 09:07:38 +0200 (MEST)
Message-ID: <xxxxxx>
From: "Webmaster" <Webmaster@netcologne.de>
To: <mail@u-dream.de>
Subject: mail02
Date: Fri, 29 Oct 2004 09:12:38 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0016_01C4BD97.6F6ECBE0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Spam-Status: No, hits=0.2 required=10.0
tests=HTML_60_70,HTML_MESSAGE
version=2.52
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.52 (1.174.2.8-2003-03-24-exp)
X-UIDL: f842c6e35061799a436644b093380e8d
Status: RO
</HEADER>
<MESSAGE>
This is a multi-part message in MIME format.
------=_NextPart_000_0016_01C4BD97.6F6ECBE0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
testmail f=FCr mein mailsystem...
hallo hallo test ets
mail02 mit mehr text
------=_NextPart_000_0016_01C4BD97.6F6ECBE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<DIV><FONT face=3DArial size=3D2>testmail f=FCr mein =
mailsystem...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>hallo hallo test ets</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>mail02 mit mehr=20
text</FONT></DIV></DIV></BODY></HTML>
------=_NextPart_000_0016_01C4BD97.6F6ECBE0--
</MESSAGE>

